/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    /* display: flex; */
    justify-content: center;
    align-items: center;

}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navigation */
.navbar {
    background-color: #1a237e;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #bbdefb;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== NEW CAROUSEL STYLES ===== */
.slider-container {
    max-width: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 500px;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.slide:hover .slide-content {
    transform: translateY(0);
}

.slide-content h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.slide-content p {
    font-size: 1rem;
    line-height: 1.5;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.slider-btn svg {
    width: 24px;
    height: 24px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.2);
}

.auto-play-toggle {
    position: absolute;
    bottom: 70px;
    right: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.auto-play-toggle:hover {
    background: rgba(255, 255, 255, 0.9);
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.8);
    width: 0%;
    transition: width 0.1s linear;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .slider {
        height: 400px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slide-content h3 {
        font-size: 1.2rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .auto-play-toggle {
        bottom: 60px;
        right: 15px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .slider {
        height: 300px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        padding: 0 10px;
    }

    .slide-content {
        padding: 15px;
    }

    .slide-content h3 {
        font-size: 1rem;
    }

    .slide-content p {
        font-size: 0.8rem;
    }

    .auto-play-toggle {
        bottom: 50px;
        right: 10px;
        font-size: 0.7rem;
        padding: 5px 10px;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .carousel-nav {
        background: rgba(255, 255, 255, 0.3);
    }
}

/* Welcome Section */
.welcome-section {
    padding: 4rem 0;
    text-align: center;
    background-color: white;
}

.welcome-section h1 {
    color: #1a237e;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.welcome-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
}

/* ===============================
   TIMETABLE FILTERS
================================ */
.timetable-filter {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a237e;
}

.grade-filter,
.branch-filter {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    background-color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.grade-filter:hover,
.branch-filter:hover,
.grade-filter:focus,
.branch-filter:focus {
    border-color: #1a237e;
    outline: none;
}

/* ===============================
   TABLE CONTAINER (SCROLLABLE)
================================ */
.table-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

/* Vertical scroll area */
.timetable-scroll {
    max-height: 520px;
    /* ~10 rows */
    overflow-y: auto;
}

/* ===============================
   TIMETABLE TABLE
================================ */
.timetable {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.timetable thead th {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: white;
    padding: 14px 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    z-index: 2;
}

.timetable tbody td {
    padding: 14px 16px;
    font-size: 0.95rem;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.timetable tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.timetable tbody tr:hover {
    background-color: #e8eaf6;
}

.timetable tbody td:nth-child(6) {
    font-weight: 600;
    color: #1a237e;
}

/* ===============================
   CUSTOM SCROLLBAR (DESKTOP)
================================ */
.timetable-scroll::-webkit-scrollbar {
    width: 8px;
}

.timetable-scroll::-webkit-scrollbar-track {
    background: #f1f3f9;
    border-radius: 10px;
}

.timetable-scroll::-webkit-scrollbar-thumb {
    background: #3949ab;
    border-radius: 10px;
}

.timetable-scroll::-webkit-scrollbar-thumb:hover {
    background: #1a237e;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 768px) {
    .timetable-filter {
        justify-content: center;
    }

    .timetable {
        min-width: 700px;
    }

    .timetable-scroll {
        max-height: 420px;
    }
}


/* Introduction Section */
.intro-section {
    padding: 4rem 0;
    background-color: white;
}

.intro-section h2 {
    text-align: center;
    color: #1a237e;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.intro-section p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* Results Section */
.results-section {
    padding: 4rem 0;
    background-color: #f1f3f9;
}

.results-section h2 {
    text-align: center;
    color: #1a237e;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.tabs-container {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tabs {
    display: flex;
    background-color: #1a237e;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.tab-btn:hover {
    background-color: #283593;
}

.tab-btn.active {
    background-color: #3949ab;
}

.tab-content {
    padding: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th,
.results-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.results-table th {
    background-color: #3949ab;
    color: white;
    font-weight: 600;
}

.results-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.results-table tr:hover {
    background-color: #e3f2fd;
}

/* Reviews Section */
.reviews-section {
    padding: 4rem 0;
    background-color: white;
}

.reviews-section h2 {
    text-align: center;
    color: #1a237e;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.review-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: #e0e0e0;
}

.review-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-content p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
}

.review-content h4 {
    color: #1a237e;
}

/* Branches Section */
.branches-section {
    padding: 4rem 0;
    background-color: #f1f3f9;
}

.branches-section h2 {
    text-align: center;
    color: #1a237e;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.branches-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.branch-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.branch-card:hover {
    transform: translateY(-5px);
}

.branch-card h3 {
    color: #1a237e;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: #1a237e;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bbdefb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1a237e;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .welcome-section h1,
    .timetable-section h2,
    .intro-section h2,
    .results-section h2,
    .reviews-section h2,
    .branches-section h2 {
        font-size: 1.8rem;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1 0 auto;
    }
}