:root {
    --primary: #4a6fa5;
    --primary-dark: #3a5980;
    --secondary: #ff9a3c;
    --accent: #4CAF50;
    --light: #f8f9fa;
    --dark: #333;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.nav-buttons {
    display: flex;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #e68a2e;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(to right, #f8f9fa, #e9f2ff);
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    padding-right: 40px;
}

.hero-text h1 {
    font-size: 2.8rem;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-illustration {
    flex: 1;
    text-align: center;
}

.hero-illustration img {
    max-width: 100%;
    height: auto;
}

.hero-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.hero-badge {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--dark);
}

.hero-badge i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.badge-free i {
    color: var(--accent);
}

.badge-time i {
    color: var(--primary);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(74, 111, 165, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 30px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray);
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background-color: var(--light);
}

.steps-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
    z-index: 2;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 60%;
    width: 100%;
    height: 2px;
    background-color: var(--light-gray);
    z-index: 1;
}

.step h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.step p {
    color: var(--gray);
}

/* Profile Section */
.profile {
    padding: 80px 0;
    background-color: white;
}

.profile-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.profile-text {
    flex: 1;
}

.profile-text h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.profile-text p {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.profile-features {
    margin-bottom: 30px;
}

.profile-feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.profile-feature i {
    color: var(--accent);
    margin-right: 10px;
    font-size: 1.2rem;
}

.profile-illustration {
    flex: 1;
    text-align: center;
}

.profile-illustration img {
    max-width: 100%;
    height: auto;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: var(--light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark);
}

.faq-question i {
    color: var(--primary);
    transition: var(--transition);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--gray);
}

.faq-answer.open {
    padding-bottom: 20px;
    max-height: 300px;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding-right: 20px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    display: block;
}

.footer-logo span {
    color: var(--secondary);
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #bbb;
    font-size: 0.9rem;
}

/* School Vector Styles */
.school-vector {
    max-width: 500px;
    margin: 0 auto;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-text h1 {
        font-size: 2.3rem;
    }

    .profile-content {
        flex-direction: column;
    }

    .profile-text {
        order: 2;
    }

    .profile-illustration {
        order: 1;
        margin-bottom: 40px;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .hero-badges {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-buttons .btn {
        display: none;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }

    .features,
    .how-it-works,
    .profile,
    .faq {
        padding: 60px 0;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 15px;
    }

    .hero-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.rounded-circle {
    border-radius: 20px;
}

/* School Cards Grid */
.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px 0 50px;
}

.school-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.school-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.school-logo {
    height: 180px;
    background: linear-gradient(135deg, #f0f5ff, #dbe5ff);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.school-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.school-logo .placeholder-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #1e3c72;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
}

.school-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.school-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 8px;
    line-height: 1.3;
}

.school-type {
    display: inline-block;
    background: #e8f0fe;
    color: #1e3c72;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    align-self: flex-start;
}

.school-location {
    color: #666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.school-location i {
    color: #888;
}

.school-stats {
    display: flex;
    gap: 20px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1e3c72;
}

.stat-label {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.school-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #4CAF50;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.card-footer {
    background: #f9f9f9;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-details {
    background: #1e3c72;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.view-details:hover {
    background: #2a5298;
}

.approved-badge {
    background: #4CAF50;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pagination button {
    background: white;
    border: 1px solid #ddd;
    color: #555;
    padding: 10px 16px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
}

.pagination button.active {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
}

.pagination button:hover:not(.active) {
    background: #f0f5ff;
    border-color: #1e3c72;
}

.directory-header {
    padding-top: 20px;
}

/* School Details Page Styles */
.details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1e3c72;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: background 0.3s;
}

.back-button:hover {
    background: #2a5298;
}

.school-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.school-header-logo {
    flex: 0 0 150px;
    height: 150px;
    background: linear-gradient(135deg, #f0f5ff, #dbe5ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.school-header-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.school-header-info {
    flex: 1;
}

.school-header-info h1 {
    font-size: 32px;
    color: #1e3c72;
    margin-bottom: 10px;
}

.school-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.meta-tag {
    background: #e8f0fe;
    color: #1e3c72;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.meta-tag.approved {
    background: #e8f5e9;
    color: #2e7d32;
}

.school-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.detail-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.detail-card h2 {
    font-size: 20px;
    color: #1e3c72;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f5ff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-card h2 i {
    color: #4a6fdc;
}

.info-list {
    list-style: none;
}

.info-list li {
    margin-bottom: 12px;
    display: flex;
}

.info-list li strong {
    min-width: 150px;
    color: #555;
}

.core-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.value-tag {
    background: #f0f5ff;
    color: #1e3c72;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.awards-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.award-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #4a6fdc;
}

.award-year {
    color: #1e3c72;
    font-weight: 700;
    margin-bottom: 5px;
}

.award-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.management-card {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #4a6fdc;
}

.management-position {
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 5px;
}

.management-contact {
    font-size: 14px;
    color: #666;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 15px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.video-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #aaa;
}

/* =======================
   Mobile Responsiveness
   ======================= */
@media (max-width: 768px) {
    .school-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }

    .school-header-logo {
        flex: none;
        width: 120px;
        height: 120px;
        padding: 15px;
    }

    .school-header-info {
        width: 100%;
    }
    
    .hide-on-xs{
        display: none;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .school-header {
        padding: 15px;
    }

    .school-header-logo {
        width: 100px;
        height: 100px;
    }
    
    .hide-on-xs{
        display: none;
    }
}

.site-logo-link{
    display:block;
    width: 50%;
}

.site-logo {
    width: 150px;
    max-height:70px;
    display:block;
}