/*
Theme Name: IOMEduBD
Theme URI: http://iom.edu.bd/
Author: Jihadur Rahman Noyon
Author URI: http://misbah.app
Description: A custom WordPress theme for Islamic Online Madrasah.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iomedubd
Tags: custom-theme, responsive, blog, one-column, two-columns

*/
body {
	font-family: "Roboto", sans-serif;
}

p {
    text-align: justify;
}
.modal-open {
        overflow: hidden;
 }
.single-page p {
	margin-bottom: 10px;
}
/* General Styles */
.gradient-g {
    background: linear-gradient(90deg, rgb(26, 138, 40) 0%, rgb(26, 138, 63) 35%, rgb(26, 138, 109) 100%);
    color: #FFF;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
}
.flex-grow.overflow-hidden {
    overflow-y: auto;
}

/* Heading Styles */
.s-heading {
    position: relative;
}
.wp-block-heading {
  background: #1a8a54;
  color: #FFF;
  padding: 5px 10px;
  border-radius: 5px;
  margin-bottom: 5px;
}
.s-heading:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #38a169 50%, #2e2e2e 50%);
    text-align: center;
    font-weight: bold;
}

.s-heading span {
    color: green;
}
.woonp.woonp-overwrite input {
  border: 1px solid #ddd !important;
  padding: 6px 15px;
}
/* Card Styles */
.card {
    border-radius: 5px;
}
.card p {
    color: #3d3d3d;
}
.mobile-nav button {
  border-top: 2px solid #686868;
}
.active {
  border-top: 2px solid #14a148 !important;
  color: #14a148;
}
/* Admission Status */
.admission-status {
    width: 10px;
    height: 10px;
    display: block;
    position: absolute;
    left: 50%;
    top: -5px;
    border-radius: 100%;
}

/* Top Menu */
.top-menu ul li i {
    background: #1a8a3f;
    color: #FFF;
    border-radius: 100%;
    font-size: 10px;
    width: 22px;
    height: 22px;
    text-align: center;
    line-height: 22px;
    margin-right: 1px;
}

/* Timeline Styles */
.timeline-single {
	position: relative;
}
.timeline-single::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #1a8a3f;
    left: -10px;
}

.timeline-single > li {
    position: relative;
    margin-bottom: 10px;
    margin-left: 6px;
}

.timeline-single > li::before {
    content: '';
    position: absolute;
    top: 10px;
    left: -22px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #1a8a3f;
}


/* Timeline Styles */
.timeline-style {
	position: relative;
	margin-left: 10px;
}
.timeline-style::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
    left: -10px;
}

.timeline-style > li {
  position: relative;
  margin-bottom: 10px;
  margin-left: 5px;
  background: #16a34a;
  border-radius: 5px;
  color: #FFF;
  font-weight: bold;
  padding: 5px 10px;
}

.timeline-style > li::before {
    content: '';
    position: absolute;
    top: 10px;
    left: -22px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #1a8a3f;
}

/* Sticky Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    z-index: 99999999;
    width: 100%;
    background: #FFF;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}
.sticky-nav img {
    width: 50%;
}
.sticky-nav .container {
    padding: 15px 0;
}

/* Main Menu - Submenu */
.main-menu .sub-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    left: 0;
    min-width: 160px;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: max-height 0.9s ease, opacity 0.9s ease;
}
.main-menu li:hover > .sub-menu {
    max-height: 500px;
    opacity: 1;
}
.main-menu li {
    position: relative;
}
.sub-menu li {
    padding: 10px;
}

/* WooCommerce Styles */
.input-text {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
}
.woocommerce-form-coupon-toggle {
    display: none;
}
.woocommerce-shop .bg-white {
    background: inherit !important;
}
.columns-6 {
    columns: inherit !important;
}
.product {
    background: #FFF;
    text-align: center;
}
.woocommerce ul.products li.product .button {
    display: block;
    margin-top: inherit;
    background: #467146;
    color: #FFF;
}

/* Additional Commerce Styles */
div.asl_m .probox {
    background: transparent !important;
}

/* Keyframes Animation */
@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Sidebar Styles */
.sidebar-fixed {
    position: fixed;
    left: 0;
    top: 0;
    width: 90%;
    z-index: 9999999999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar-menu li ul a {
    font-weight: normal;
    background: #f0f0f0;
    display: block;
    border-radius: 5px;
    padding: 5px;
    text-align: center;
    font-size: 14px;
}

.sidebar-menu .menu-item-has-children {
    text-align: center;
    display: block;
    margin-bottom: 10px;
}

.sidebar-menu .sub-menu {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
}

.sidebar-menu .sub-menu li {
    padding: 0;
}

.sidebar-menu > li > a {
  background: #35b177;
  display: block;
  padding: 5px;
  color: #FFF;
  margin-bottom: 5px;
}

.sidebar-menu li:first-child {
    display: none;
}

.sidebar-fixed.active {
    transform: translateX(0);
}

/* Overlay Styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999998;
}

.overlay.active {
    opacity: 1;
    display: block;
}
.student-corner li a {
  background: #16a34a;
  color: #FFF;
  border-radius: 5px;
  padding: 7px 10px;
  display: block;
}
.fa-angle-down {
    transition: transform 0.3s ease; /* Smooth transition for rotation */
}

.rotate-up {
    transform: rotate(180deg); /* Rotates the icon 180 degrees to point upwards */
}

/************ Woocommerce ********/
.summary.entry-summary {
  width: 100% !important;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  float: inherit !important;
  border: 1px solid #ddd;
  padding: 10px;
  align-items: center;
  font-weight: bold;
}
.woocommerce-Price-amount.amount {
  color: #16a34a;
  font-size: 30px;
}
.woocommerce div.product form.cart {
  margin-bottom: 0 !important;
}
.single_add_to_cart_button {
  background: #16a34a !important;
}

@media all and (max-width: 768px){
	.home #mobile-nav {
		display: block;
	}
	.sticky-nav {
		position: inherit;
	}
}
