:root {
    --primary: #2c3e50;
    --secondary: #e74c3c;
    --accent: #3498db;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    color: var(--text);
    line-height: 1.6;
    background-color: #f9f9f9;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: auto;
}

/* Header Styles */
header {
    background-color: #FFFFFF;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 999;
}

.banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    position: relative;
}

.logo-container {
    flex: 0 0 auto;
}

.logo-left,
.logo-right {
    height: auto;
    max-height: 95px;
    width: auto;
    margin: 0;
}


h1 {
    flex: 1;
    text-align: center;
    font-size: 2.6rem;
    color: #2a6c8e;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Header Top Bar */
.header-top-bar {
    height: 40px;
    background: #2dace3;
}
/* Navigation - Fixed Alignment */
nav {
    background: white;
    padding: 0.5rem 0;
    margin-top: -2em; /* Move nav 5em higher */
    position: relative;
    z-index: 1000;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
}

nav li {
    position: relative;
    margin-left: 1.5rem;
}

nav a {
    display: inline-block;   /* IMPORTANT */
    padding: 14px 18px;
    color: #1d5e93;
    text-decoration: none;
    font-weight: 700;
    position: relative;
}

/* Underline animation */
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width .3s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

        
nav a.active {
    color: var(--secondary);
}
        
nav a.active:after {
    width: 100%;
}

/* Dropdown menu */
.submenu .dropdown {
    position: absolute;
    background: white;
    box-shadow: var(--shadow);
    min-width: 220px;
    display: none;
    top: 100%;
    left: 0;
}

.submenu:hover .dropdown {
    display: block;
}

.dropdown a {
    padding: 12px 16px;
    font-weight: 600;
}

.dropdown a:hover {
    background: var(--light);
}

/* ===== MOBILE MENU BUTTON ===== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: none;
    background: transparent;
    cursor: pointer;

    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2000;
}


.mobile-menu-toggle .bar {
    width: 26px;
    height: 3px;
    background: #1d5e93;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1530026405186-ed1f139313d8?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background: var(--secondary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Cards Layout */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.card p {
    margin-bottom: 1.5rem;
    color: #666;
}
        /* Page Content */
        .page-content {
            padding: 4rem 0;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 3rem;
            color: var(--primary);
        }
        
        .section-title h2 {
            font-size: 2.2rem;
            margin-bottom: 1rem;
            position: relative;
            display: inline-block;
        }
        
        .section-title h2:after {
            content: '';
            position: absolute;
            width: 70px;
            height: 3px;
            background: var(--secondary);
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
        }
        
        .section-title p {
            color: #666;
            max-width: 700px;
            margin: 0 auto;
        }

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.service-item h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Text Center */
.text-center {
    text-align: center;
}

/* Main content */
main {
    flex: 1;
    padding: 20px;
}

.highlights {
    padding: 20px;
}

.intro {
    background-color: #e8f4f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
}

h2 {
    color: #2a6c8e;
}
        /* Contact Form */
        .contact-form {
            background: white;
            padding: 2rem;
            border-radius: 10px;
            box-shadow: var(--shadow);
        }
        
        .form-group {
            margin-bottom: 1.5rem;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }
        
        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 1rem;
        }
        
        .form-group textarea {
            min-height: 150px;
        }

/* New Style for Justified Biography Text */
#biography p {
    text-align: justify;
}

/* Footer Styles */
footer {
    background: #152759;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: var(--secondary);
    bottom: 0;
    left: 0;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary);
}

.footer-links a {
    display: block;
    color: #ddd;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Accordion Styles */
.accordion {
    width: 100%;
    max-width: 1100px;
    margin: 20px auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    background-color: #2a6c8e;
    color: #fff;
    padding: 15px;
    font-size: 1.2em;
    cursor: pointer;
    text-align: left;
    border: none;
    width: 100%;
    outline: none;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #4c8baa;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 15px;
    background-color: #f5f5f5;
    text-align: justify;
}

.accordion-content p {
    margin: 15px 0;
}

/* General content styling */
.content {
    max-width: 750px;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Section titles */
.section-title {
    font-size: 2em;
    color: #2a6c8e;
    margin-bottom: 20px;
    text-align: center;
}

/* Strategy sections */
.learning-strategy {
    margin-bottom: 30px;
}

.strategy-header {
    font-size: 1.5em;
    color: #2a6c8e;
    margin-bottom: 10px;
}

.strategy-list {
    list-style-type: disc;
    padding-left: 20px;
    text-align: justify;
}

.strategy-list li {
    margin-bottom: 10px;
}

.strategy-conclusion {
    font-size: 1.2em;
    color: #333;
    text-align: justify;
    margin-top: 20px;
}

/* Ensure images in the content are responsive */
.content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

@media (max-width: 992px) {

    /* KEEP HEADER HORIZONTAL */
    .banner {
        flex-wrap: nowrap;
        padding-right: 60px; /* space for toggle */
    }

    /* Smaller logos */
    .logo-left,
    .logo-right {
        max-height: 55px;
    }

    /* Smaller title */
    h1 {
        font-size: 1.2rem;
        white-space: nowrap;
    }

    /* SHOW TOGGLE */
    .mobile-menu-toggle {
        display: flex;
    }

    /* NAV COLLAPSE */
    nav {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.45s ease;
	background: white;
	border-top: 1px solid #eee;
    }

    nav.active {
	max-height: 90vh;   /* big enough for menu */
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        background: white; /* FIX */
    }

    nav li {
        margin: 0;
    }

    nav a {
        padding: 14px;
        border-top: 1px solid #eee;
        color: #1d5e93; /* ensure visible */
    }

    /* MOBILE DROPDOWN */
    .submenu .dropdown {
        position: static;
        box-shadow: none;
        display: none;
    }

    .submenu.active .dropdown {
        display: block;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .logo-container {
        margin-bottom: 10px;
    }
    
    h1 {
        margin: 20px 0;
        font-size: 2.2em;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 0.2rem 0;
        width: 100%;
        text-align: center;
    }
    
    .submenu .dropdown {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .banner {
	flex-direction: row;      /* KEEP horizontal */
	justify-content: space-between;
	align-items: center;
	padding-right: 60px;      /* space for toggle */
    }

    .banner h1 {
        font-size: 1rem;     /* smaller title */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    nav ul li {
        display: block;
        margin: 10px 0;
    }

}

/* Small phones */
@media (max-width: 480px) {

    h1 {
        font-size: 1.2rem;
    }

    .logo-left,
    .logo-right {
        max-height: 48px;
    }
}

        /* Contact Form Specific Styles */
        #contact-form-message {
            display: none;
            margin-bottom: 20px;
            padding: 15px;
            border-radius: 5px;
            font-weight: 500;
        }
        
        .alert-success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        
        .alert-error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
        }
        
        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 5px;
            font-size: 16px;
            transition: border-color 0.3s ease;
        }
        
        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #2a6c8e;
        }
        
        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }
        
        button[type="submit"]:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
        
        .contact-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            margin-bottom: 40px;
        }
        
        @media (max-width: 768px) {
            .contact-content {
                grid-template-columns: 1fr;
                gap: 30px;
            }
        }
        </style>

