/* ==========================================
   ICSE Board - Main Stylesheet
   ========================================== */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Information Bar */
.top-info-bar {
    background: #2c3e50;
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.top-info-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-left span {
    margin-right: 25px;
}

.info-left i {
    margin-right: 8px;
}

.info-right a {
    color: #fff;
    margin-left: 15px;
    transition: transform 0.3s;
}

.info-right a:hover {
    transform: translateY(-2px);
}

/* Header */
.header {
    background: #2c3e50;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
    border-bottom: 3px solid #17a2b8;
}

.header.scrolled {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.4);
    background: #fff;
    padding: 3px;
}

.logo-text h1 {
    font-size: 22px;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 12px;
    color: #bbb;
    margin-top: 0;
    font-weight: 400;
    line-height: 1.2;
}

/* Navigation Menu */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    transition: color 0.3s;
    padding: 8px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #17a2b8;
    transition: width 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #17a2b8;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-result {
    padding: 8px 20px;
    background: #17a2b8;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border: 2px solid #17a2b8;
}

.btn-result:hover {
    background: #138496;
    border-color: #138496;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('https://images.pexels.com/photos/5632399/pexels-photo-5632399.jpeg?auto=compress&cs=tinysrgb&w=1600&h=900');
    background-size: cover;
    background-position: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hero-scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    color: rgba(255,255,255,0.8);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #17a2b8;
    color: #fff;
    border-color: #17a2b8;
}

.btn-primary:hover {
    background: #138496;
    border-color: #138496;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #17a2b8;
}

.btn-outline {
    background: transparent;
    color: #17a2b8;
    border-color: #17a2b8;
}

.btn-outline:hover {
    background: #17a2b8;
    color: #fff;
}

/* Section Padding */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background: #f8f9fa;
}

.bg-dark {
    background: #2c3e50;
}

.bg-primary {
    background: #17a2b8;
    color: #fff;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    display: inline-block;
    color: #17a2b8;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 32px;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: 0;
}

.section-header.light .section-title {
    color: #fff;
}

.section-header.light .section-subtitle {
    color: rgba(255,255,255,0.9);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.8;
}

.about-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Chairman Section */
.chairman-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: center;
}

.chairman-image {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    border: 3px solid #17a2b8;
}

.chairman-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.chairman-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 65px;
    height: 65px;
    background: #17a2b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.chairman-quote {
    font-size: 18px;
    font-style: italic;
    color: #2c3e50;
    margin: 18px 0;
    padding-left: 18px;
    border-left: 3px solid #17a2b8;
}

.chairman-text p {
    color: #6c757d;
    margin-bottom: 18px;
    line-height: 1.7;
    font-size: 15px;
}

.chairman-signature h4 {
    color: #2c3e50;
    font-size: 18px;
    margin-top: 25px;
}

.chairman-signature p {
    color: #6c757d;
    font-size: 14px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
    border-color: #17a2b8;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: #17a2b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #fff;
}

.feature-card h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 14px;
}

/* Recognition Section */
.recognition-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.recognition-item {
    text-align: center;
}

.recognition-badge {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: #fff;
    transition: all 0.3s;
}

.recognition-item:hover .recognition-badge {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.recognition-item p {
    color: #fff;
    font-weight: 600;
}

/* Notifications Section */
.notifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.notification-card {
    background: #fff;
    border-radius: 0;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    gap: 18px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-left: 4px solid #17a2b8;
}

.notification-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.notification-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #dc3545;
    color: #fff;
    padding: 3px 10px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.notification-date {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #17a2b8;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.notification-date .day {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.notification-date .month {
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 3px;
}

.notification-content h3 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.notification-content p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.notification-link {
    color: #17a2b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.25s ease;
    text-transform: uppercase;
}

.notification-link:hover {
    gap: 8px;
}

/* Statistics Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
}

.stat-item {
    text-align: center;
    color: #fff;
}

.stat-icon {
    font-size: 45px;
    margin-bottom: 18px;
    opacity: 0.95;
}

.stat-number {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 15px;
    opacity: 0.95;
}

/* Mobile Stats Layout */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .stat-icon {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .stat-number {
        font-size: 32px;
        margin-bottom: 5px;
    }

    .stat-item p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-icon {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .stat-number {
        font-size: 28px;
        margin-bottom: 5px;
    }

    .stat-item p {
        font-size: 12px;
    }
}

/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.course-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
    border-color: #17a2b8;
}

.course-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.course-level {
    background: rgba(23, 162, 184, 0.95);
    color: #fff;
    padding: 5px 12px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.course-content {
    padding: 25px;
}

.course-content h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.course-content p {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 14px;
}

.course-info {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 13px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

.gallery-item {
    position: relative;
    height: 240px;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.gallery-item:hover {
    border-color: #17a2b8;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(23, 162, 184, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay i {
    font-size: 38px;
    color: #fff;
}

/* Testimonials Section */
.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    display: none;
    animation: slideIn 0.5s ease-in-out;
}

.testimonial-card.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-rating {
    margin-bottom: 20px;
    color: #fbbf24;
    font-size: 18px;
}

.testimonial-card p {
    font-size: 16px;
    color: #64748b;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 60px;
}

.testimonial-card h4 {
    color: #1e3a8a;
    font-size: 16px;
    margin-bottom: 3px;
    font-weight: 600;
}

.testimonial-card span {
    color: #94a3b8;
    font-size: 13px;
}

/* FAQ Section */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question h3 {
    font-size: 18px;
    color: #1e3a8a;
    font-weight: 600;
}

.faq-question i {
    color: #3b82f6;
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px;
}

.faq-answer p {
    color: #64748b;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #bbb;
}

.footer-top {
    padding: 60px 0 30px;
    border-top: 3px solid #17a2b8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
    background: #fff;
    padding: 3px;
}

.footer-logo h3 {
    color: #fff;
    font-size: 20px;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #3b82f6;
    transform: translateY(-3px);
}

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #17a2b8;
    padding-left: 3px;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: #17a2b8;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
}

.footer-bottom i {
    color: #e74c3c;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: #17a2b8;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #138496;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 300px;
        height: calc(100vh - 90px);
        background: #fff;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 30px;
        gap: 0;
    }

    .nav-menu ul li {
        margin-bottom: 20px;
    }

    .nav-menu a {
        color: #2c3e50;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        color: #17a2b8;
    }

    .menu-toggle {
        display: flex;
    }

    .about-content,
    .chairman-content {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-info-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .info-left span {
        display: block;
        margin: 5px 0;
    }

    .btn-result {
        display: none;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .features-grid,
    .courses-grid,
    .notifications-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 18px;
    }

    .logo-text p {
        font-size: 10px;
    }

    .logo-image {
        width: 55px;
        height: 55px;
        border-width: 2px;
        padding: 2px;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 26px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 12px;
    }
}
