:root {
    --primary-blue: #000080;      /* Navy blue */
    --light-blue: #e6f0ff;        /* Light blue complement */
    --dark-blue: #000050;         /* Darker navy */
    --accent-blue: #4169E1;       /* Royal blue accent */
    --accent-light-blue: #99bbee; /* Lighter accent */
    --menu-blue: #1e40af;         /* Menu text blue */
    --gold: #f59e0b;
    --info: #17a2b8;
    --whatsapp-green: #25D366;
    --whatsapp-green-dark: #128C7E;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    padding-top: 76px; /* Adjusted for fixed navbar height */
     overflow-x: hidden; /* Prevent horizontal scroll */
}

.headerFont, .section-title, .card-title, .teacher-name,
.other-section-title {
    font-family: "Merienda", cursive;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.showUnderline{
    position: relative;
}

.showUnderline::after {
    content: "";
    position: absolute;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--gold);
    left: 27px;
    transform: translateX(-50%);           
}

/* Navbar Styles */
.navbar {
    background-color: white !important;            
}

.headerBoxShadow {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary-blue) !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 60px;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: var(--menu-blue) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--gold) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: var(--gold) !important;
    border-bottom: 2px solid var(--gold);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(30, 64, 175, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
    background-color: white;
    border: none;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: var(--menu-blue);
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--gold);
    color: var(--primary-blue);
}

/* Mobile navbar adjustments */
@media (max-width: 667px) {
    .navbar .container {
        max-width: 640px;               
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        height: 30px;
        margin-right: 8px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    .navbar .container {
        padding: 0 9px;                
    }

    .container {
        padding: 0 15px;                
    }
    
    .navbar-toggler {
        padding: 0.15rem 0.3rem;
    }
    .slider-container {
        margin-top: -65px !important;
    }
    #demo{
        top:-20px;
    }
}        

/*waved lines*/
#topWavedLines {
    z-index: 1;
    position: relative;
	min-height: 40px; 

    background: linear-gradient(60deg,#ffffff,#ffffff);
    --mask:
        radial-gradient(36.62px at 50% calc(100% - 51.00px),#000 99%,#0000 101%) calc(50% - 60px) 0/120px 100%,
        radial-gradient(36.62px at 50% calc(100% + 21.00px),#0000 99%,#000 101%) 50% calc(100% - 30px)/120px 100% repeat-x;
    -webkit-mask: var(--mask);
            mask: var(--mask);

    clip-path: none; --mask: linear-gradient(0,#0000 30px,#000 0),
            radial-gradient(30px,#000 calc(100% - 1px),#0000) bottom/55.5px 60px;
}

 #bottomWavedLines {
    z-index: 1;
    position: relative;
	min-height: 40px;
       
    background: linear-gradient(60deg,#ffffff,#ffffff);
    --mask:
        radial-gradient(36.62px at 50% calc(100% - 51.00px),#000 99%,#0000 101%) calc(50% - 60px) 0/120px 100%,
        radial-gradient(36.62px at 50% calc(100% + 21.00px),#0000 99%,#000 101%) 50% calc(100% - 30px)/120px 100% repeat-x;
    -webkit-mask: var(--mask);
            mask: var(--mask);

    clip-path: none; --mask: linear-gradient(180deg,#0000 30px,#000 0),
    radial-gradient(30px,#000 calc(100% - 1px),#0000) top/55.5px 60px;
}

 @media (max-width: 576px) {
    #topWavedLines {
        top:-20px;
    }
 }

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;         
    width: 50px;
    height: 3px;
    background-color: var(--accent-blue);
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
}       
       
/* WhatsApp Button */
.whatsapp-container {
    text-align: center;
    margin-top: 30px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--whatsapp-green);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
}

.whatsapp-btn:hover {
    background-color: var(--whatsapp-green-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.whatsapp-btn:hover::before {
    left: 100%;
}

.whatsapp-text {
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 50px 0 20px;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-blue);
    transform: translateY(-5px);
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .teacher-img {
        width: 150px;
        height: 150px;
    }
}