﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #ffffff; /* Change from #f5f5f5 to white */
    margin-top: 0;
}


/* HEADER */
header {
    background: #ffffff;
    padding: 15px;
    text-align: center;
    border-bottom: none;
}

header h1 {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
}

.line1 {
    color: #000000;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    font-size: 48px; /* Add this - increase as needed */
}

.line2 {
    color: #b08d57; /* bottom line color */
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}


/* NAVBAR WITH LOGOS */
.navbar-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #7e7ea5;

    padding: 10px 15px;

    border-radius: 30px;
    margin: 10px auto;
    width: 90%;

    flex-wrap: nowrap;
    overflow-x: auto;
}

.navbar-wrapper::-webkit-scrollbar {
    display: none;
}

.navbar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.navbar-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.navbar-center {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    flex: 1;
}

.navbar-center a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    padding: 0 8px;
    flex-shrink: 0;
}

.navbar-center a:hover {
    text-decoration: underline;
}

/* HEADER WITH CORNER LOGOS */
.header {
    position: relative;
    background: #ffffff;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px; /* Add this line for top spacing */
    color : aliceblue;
}

.header h1 {
    font-size: 38px;
    color: #b08d57;
    line-height: 1.3;
}

/* LOGOS */
.header-logo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

    /* LEFT */
    .header-logo.left {
        left: 30px;
        width: 125px;
        height: 125px;
    }

   .header-logo.left img {
        width: 100%;
        height: 100%;
        object-fit: contain;
   }

    /* RIGHT */
   .header-logo.right {
       right: 30px;
       width: 155px;
       height: 155px;
   }

.header-logo.right img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* HERO SECTION (REPLACES SLIDER) */
.hero-section {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TEXT OVER IMAGE */
.overlay {
    position: absolute;
    top: 30%;
    left: 10%;
    color: white;
    z-index: 10;
}

.overlay h2 {
    font-size: 40px;
    margin-bottom: 10px;
}

.overlay p {
    margin-top: 10px;
    font-size: 16px;
    width: 60%;
    margin-bottom: 15px;
}

.btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: #3a66ff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

/* /* PROFILE CARD (BOTTOM PART - SAME BOX) */

/* PROFILE-SECTION (line 191) */
/* PROFILE-SECTION */
.profile-section {
    background: #e8e8e8;
    padding: 50px 100px;
    position: relative;
}

/* UPDATES-MARQUEE */
.updates-marquee {
    background: #efeee8;
    max-width: none;
    width: 100%;
    margin: -80px 0 0;
    position: relative;
    z-index: 30;
    border-radius: 25px 25px 0 0;
    padding: 20px 30px;
}

.updates-marquee h3 {
    text-align: center;
    margin-bottom: 5px;
    color: #3a66ff;
    font-size: 18px;
}

.updates-container {
    background: #efEEE8;
    border-radius: 0;
    padding: 10px 10px;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
}

marquee {
    color: red;
    font-weight: bold;
    font-size: 15px;
}

/* PROFILE */
.profile {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 35px 50px;
    margin: 0;
    background: #efeee8;
    border-radius: 0;
    max-width: none;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* IMAGE */
.profile img {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    object-fit: cover;
    flex-shrink: 0;
}

.highlight-orange {
    color: #ed2c42;
    font-weight: 700; /* Extra bold */
    font-size: 16px;
}

/* TEXT */
.profile-details {
    flex: 1;
}

    .profile-details h2 {
        margin-bottom: 8px;
        font-size: 24px;
        color: black;
    }

    .profile-details h4 {
        color: #ed2c42;
        margin-bottom: 12px;
        font-size: 16px;
        font-weight: 600;
    }

    .profile-details p {
        color: black;
        line-height: 1.7;
        font-size: 14px;
        text-align: justify;
    }

/* COURSES SECTION */
.courses {
    padding: 40px 20px;
    background: #f8f8f8;
}

.courses > .section-subtitle,
.courses > .section-title,
.courses > .section-desc,
.courses > .course-container {
    max-width: 1060px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: #3a66ff;
    font-size: 18px;
    margin-bottom: 10px;
    text-align: left;
}

.section-title {
    font-size: 28px;
    margin: 10px 0 15px 0;
    text-align: left;
}

.section-desc {
    margin: 0 0 30px 0;
    color: #777;
    text-align: left;
}

.course-container {
    display: flex;
    gap: 30px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
    max-width: 1060px;
}

.course-card {
    background: white;
    border-radius: 15px;
    width: 220px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #ccc;
}

.course-card h4 {
    padding: 10px;
    font-size: 16px;
}

.view-more {
    padding: 10px;
    font-size: 12px;
    color: #888;
}

.view-all-btn {
    display: block;
    margin: 30px auto;
    padding: 10px 25px;
    background: #3a66ff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

/* NOTICE + UPDATES */
.notice-updates {
    display: flex;
    justify-content: center; /* Add this */
    align-items: center; /* Add this */
    gap: 20px;
    padding: 40px;
    background: #eaeaea;
}
.notices {
    width: 50%;
}

.notices h3 {
    margin-bottom: 15px;
}

.notice-table {
    background: white;
    border-radius: 10px;
    height: 250px;
    overflow-y: auto;
    padding: 10px;
}

.notice-table table {
    width: 100%;
    border-collapse: collapse;
}

.notice-table th, 
.notice-table td {
    border: 1px solid #ddd;
    padding: 8px;
    font-size: 12px;
    text-align: center;
}

.notice-table th {
    background: #f0f0f0;
}

.read-more {
    margin-top: 10px;
    padding: 8px 15px;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
}

.updates-section {
    width: 50%;
}

.updates-section h3 {
    margin-bottom: 15px;
}

.update-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.update-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    background: #ccc;
}

.click-btn {
    padding: 8px 15px;
    background: #3a66ff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.link {
    color: #3a66ff;
    font-size: 14px;
}

.updates-slider {
    overflow: hidden;
    width: 100%;
}

.updates-track {
    display: flex;
    transition: transform 0.5s ease;
}

.update-slide {
    min-width: 100%;
}

.dots {
    text-align: center;
    margin-top: 10px;
}

.dot {
    height: 8px;
    width: 8px;
    margin: 0 5px;
    background-color: #bbb;
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: #3a66ff;
}

.static-card {
    margin-bottom: 15px;
}

/* ACTIVITIES SECTION */
.activities {
    padding: 40px 20px;
    background: #fff;
}

.activities-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.activity-card {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 15px;
    width: 48%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.activity-card img {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    object-fit: cover;
    background: #ddd;
}

.activity-card h3 {
    margin: 10px 0 5px;
}

.activity-card p {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.view-btn-container {
    text-align: center;
    margin-top: 20px;
}

.view-btn {
    background: #3a66ff;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
}

/* ABOUT SECTION */
.about-section {
    background: #f3f3f3;
    padding: 50px 20px;
}

.center {
    text-align: center;
}

.about-card {
    background: #fff;
    margin: 30px auto;
    padding: 25px;
    border-radius: 20px;
    display: flex;
    gap: 30px;
    align-items: center;
    max-width: 1000px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.about-img img {
    width: 250px;
    height: 250px;
    border-radius: 15px;
    object-fit: cover;
    background: #ddd;
}

.about-content h3 {
    margin-bottom: 10px;
}

.about-content p {
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

.about-content .view-all-btn {
    margin-top: 10px;
}

/* GALLERY */
.gallery-section {
    padding: 40px 20px;
    background: #f5f5f5;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-section .section-subtitle {
    color: #3a66ff;
    font-size: 18px;
    margin-bottom: 10px;
    text-align: left;
}

.gallery-section .section-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: left;
    color: #222;
}

.gallery-controls {
    text-align: right;
    margin-bottom: 20px;
    padding-right: 10px;
}

.gallery-controls button {
    background: #ddd;
    border: none;
    padding: 10px 14px;
    border-radius: 50%;
    margin-left: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.gallery-controls button:hover {
    background: #ccc;
}

/* GALLERY */
.gallery-section {
    padding: 40px 20px;
    background: #f5f5f5;
    width: 100%;
}

.gallery-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    width: 100%;
    max-width: 100%;
    overflow-y: hidden;
}

    .gallery-wrapper::-webkit-scrollbar {
        display: none;
    }

.gallery-card {
    min-width: 300px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

    .gallery-card img {
        width: 100%;
        height: 350px;
        object-fit: cover;
        background: #e8e8e8;
    }

/* FOOTER -  */
.footer {
    background: #bdbdbd;
    padding: 40px 20px 10px;
    color: #e6e6e6;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-col {
    width: 250px;
}

.footer-col h3 {
    margin-bottom: 10px;
    color: #2b2b2b; /* section titles */
}

.footer-col p {
    margin: 6px 0;
    color: #2b2b2b; /* lighter gray for links/text */
    cursor: pointer;
}

.footer-col p:hover {
    color: #ffffff; /* hover -> pure white */
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #bfbfbf;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* HERO */
.about-hero {
    background: url('images/AboutUs_1.jpg') center/cover no-repeat;
    height: 250px;
    display: flex;
    align-items: center;
    padding-left: 50px;
    color: white;
    font-size: 40px;
    font-weight: bold;
}

/* PAGE */
.about-page {
    padding: 40px;
    background: #eee;
}

/* CARD */
.about-page .about-card {
    background: white;
    border-radius: 20px;
    padding: 100px;
    display: flex;
    gap: 30px;
    max-width: 1100px;
    margin: auto;
    margin-bottom: 40px;
}

/* IMAGE */
.about-page .about-img img {
    width: 350px;
    height: 250px;
    border-radius: 15px;
    object-fit: cover;
}

/* TEXT */
.about-page .about-content {
    width: 100%;
    text-align: center;
}

.about-page .about-content h2 {
    margin-bottom: 15px;
}

.about-page .about-content p {
    text-align: justify;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-bar {
    width: 100%;
    background: #7a77a1;
    color: white;
    text-align: center;
    padding: 12px 10px;
    font-size: 14px;
    line-height: 1.1;
}

.footer-bar p {
    margin: 2px 0;
}

.line3 {
    color: #b08d57;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    line-height: 1.5;
}



/* MOBILE RESPONSIVE - PREVENT CROPPING */
@media (max-width: 768px) {
    .line3 {
        font-size: 8px;
        line-height: 1.4;
    }

    .header h1 {
        font-size: 24px;
    }

    .line1 {
        font-size: 24px;
    }
}

/* EXTRA SMALL DEVICES */
@media (max-width: 480px) {
    .line3 {
        font-size: 8px;
        line-height: 1.3;
        padding: 0 10px;
    }

    .header h1 {
        font-size: 18px;
    }

    .line1 {
        font-size: 18px;
    }
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    /* Header */
    header {
        padding: 12px 5px;
    }

    header h1 {
        font-size: 18px;
        padding: 0 50px;
    }

    .header-logo img {
        width: 50px;
        height: 50px;
    }

    .header-logo.left {
        left: 8px;
    }

    .header-logo.right {
        right: 8px;
    }

    .header h1 {
        font-size: 16px;
        padding: 0 50px;
    }

    /* Navigation */
    .navbar-wrapper {
        width: 95%;
        padding: 7px 12px;
        flex-wrap: nowrap;
        gap: 10px;
        border-radius: 20px;
        overflow-x: auto;
    }

    .navbar-logo img {
        width: 40px;
        height: 40px;
    }

    .navbar-center {
        gap: 5px;
    }

    .navbar-center a {
        font-size: 12px;
        padding: 0 6px;
    }

    /* Hero Section */
    .hero-section 
    {
        position: relative;
        z-index: 1;
        height: 250px;
    }

    .overlay {
        top: 20%;
        left: 5%;
    }

    .overlay h2 {
        font-size: 28px;
    }

    .overlay p {
        font-size: 14px;
        width: 100%;
    }

    /* Updates - Overlapping */
    .updates-marquee {
        margin: -40px auto 0;
        width: 95%;
    }

    .updates-container {
        padding: 15px 20px;
    }

    /* Profile Section */
    .profile {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px;
        width: 95%;
    }

    .profile img {
        width: 150px;
        height: 150px;
    }

    .profile-details h2 {
        font-size: 20px;
        text-align: center;
    }

    .profile-details h4 {
        text-align: center;
        font-size: 14px;
    }

    .profile-details p {
        text-align: center;
        font-size: 13px;
    }

    /* Courses Section */
    .course-container {
        gap: 15px;
        justify-content: center;
    }

    .course-card {
        width: 150px;
    }

    .course-card img {
        height: 120px;
    }

    .course-card h4 {
        font-size: 14px;
        padding: 8px;
    }

    .section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* About Cards */
    .about-card {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        max-width: 100%;
        width: 95%;
        margin: 20px auto;
    }

    .about-img img {
        width: 100%;
        height: 200px;
    }

    .about-page .about-img img {
        width: 100%;
        max-width: 300px;
    }

    .about-content h2,
    .about-content h3 {
        font-size: 18px;
    }

    .about-content p {
        font-size: 13px;
    }

    .about-page {
        padding: 20px;
    }

    .about-page .about-card {
        padding: 20px;
        gap: 15px;
        margin-bottom: 30px;
    }

    /* Activities */
    .activity-card {
        width: 100%;
    }

    .activity-card img {
        height: 180px;
    }

    /* Notice and Updates Section */
    .notice-updates {
        flex-direction: column;
        padding: 20px;
        gap: 30px;
    }

    .notices,
    .updates-section {
        width: 100%;
    }

    .notice-table {
        height: 200px;
        font-size: 11px;
    }

    .notice-table th,
    .notice-table td {
        padding: 6px;
        font-size: 11px;
    }

    /* Update Card */
    .update-card {
        flex-wrap: wrap;
    }

    .update-card img {
        width: 70px;
        height: 70px;
    }

    /* Footer */
    .footer-container {
        justify-content: center;
        gap: 20px;
    }

    .footer-col {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    /* Gallery */
    .gallery-card {
        min-width: 250px;
    }

    .gallery-controls {
        text-align: center;
        margin-bottom: 15px;
    }

    /* Hero About Page */
    .about-hero {
        height: 200px;
        padding-left: 20px;
        font-size: 28px;
    }
    /* MOBILE RESPONSIVE - SMALLER LOGOS */
    @media (max-width: 768px) {
        .header-logo.left {
            left: 15px;
            width: 70px;
            height: 70px;
        }

        .header-logo.right {
            right: 15px;
            width: 80px;
            height: 80px;
        }

        .header h1 {
            font-size: 20px;
        }
    }

    /* EXTRA SMALL DEVICES */
    @media (max-width: 480px) {
        .header-logo.left {
            left: 10px;
            width: 50px;
            height: 50px;
        }

        .header-logo.right {
            right: 10px;
            width: 60px;
            height: 60px;
        }

        .header h1 {
            font-size: 16px;
        }
    }

}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    /* Header */
    header {
        padding: 8px 5px;
    }

    header h1 {
        font-size: 14px;
        padding: 0 45px;
    }

    .header-logo img {
        width: 40px;
        height: 40px;
    }

    .header-logo.left {
        left: 5px;
    }

    .header-logo.right {
        right: 5px;
    }

    /* Navigation - FIXED FOR LOGOS */
    .navbar-wrapper {
        width: 100%;
        margin: 5px 0;
        padding: 6px 10px;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 15px;
    }

    .navbar-logo img {
        width: 35px;
        height: 35px;
        flex-shrink: 0;
    }

    .navbar-center {
        gap: 4px;
        flex: 1;
    }

    .navbar-center a {
        font-size: 10px;
        padding: 0 4px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Hero Section */
    .hero-section {
        height: 200px;
    }

    .overlay {
        top: 15%;
        left: 5%;
    }

    .overlay h2 {
        font-size: 20px;
    }

    .overlay p {
        font-size: 12px;
        display: none;
    }

    .btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    /* Updates Section */
    .updates-marquee {
        width: 95%;
        margin: -30px auto 0;
    }

    .updates-container {
        padding: 12px 15px;
        border-radius: 15px 15px 0 0;
    }

    .updates-marquee h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    marquee {
        font-size: 12px;
    }

    /* Profile */
    .profile-section {
        padding: 20px 10px;
    }

    .profile {
        padding: 15px;
        width: 100%;
        flex-direction: column;
        border-radius: 0 0 15px 15px;
    }

    .profile img {
        width: 120px;
        height: 120px;
    }

    .profile-details h2 {
        font-size: 18px;
    }

    .profile-details h4 {
        font-size: 12px;
    }

    .profile-details p {
        font-size: 12px;
    }

    /* Courses */
    .courses {
        padding: 20px 10px;
    }

    .course-container {
        gap: 10px;
        justify-content: center;
        max-width: 100%;
    }

    .course-card {
        width: 140px;
    }

    .course-card img {
        height: 110px;
    }

    .course-card h4 {
        font-size: 12px;
        padding: 6px;
    }

    .view-more {
        font-size: 11px;
        padding: 6px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 20px;
        margin: 8px 0 10px 0;
    }

    .section-desc {
        font-size: 13px;
        margin: 0 0 20px 0;
    }

    .view-all-btn {
        padding: 8px 20px;
        font-size: 12px;
    }

    /* About Cards - MAJOR FIX */
    .about-section {
        padding: 20px 10px;
    }

    .about-card {
        padding: 15px;
        gap: 15px;
        margin: 25px auto;
        width: 100%;
        flex-direction: column;
    }

    .about-img img {
        width: 100%;
        height: 180px;
    }

    .about-content h2,
    .about-content h3 {
        font-size: 16px;
    }

    .about-content p {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .about-page {
        padding: 15px;
    }

    .about-page .about-card {
        padding: 15px;
        gap: 15px;
        margin-bottom: 35px;
    }

    .about-page .about-img img {
        width: 100%;
        height: 180px;
    }

    .about-page .about-content h2 {
        margin-bottom: 10px;
    }

    /* Activity Cards */
    .activities {
        padding: 20px 10px;
    }

    .activities-container {
        gap: 10px;
    }

    .activity-card {
        width: 100%;
        padding: 12px;
    }

    .activity-card img {
        height: 150px;
    }

    .activity-card h3 {
        font-size: 14px;
        margin: 8px 0 4px;
    }

    .activity-card p {
        font-size: 12px;
    }

    .view-btn {
        padding: 8px 20px;
        font-size: 12px;
    }

    /* Notice and Updates */
    .notice-updates {
        padding: 15px;
        gap: 20px;
    }

    .notice-table {
        height: 180px;
        font-size: 10px;
    }

    .notice-table th,
    .notice-table td {
        padding: 5px;
        font-size: 10px;
    }

    .read-more {
        padding: 6px 12px;
        font-size: 11px;
    }

    .update-card {
        padding: 12px;
    }

    .update-card img {
        width: 60px;
        height: 60px;
    }

    .click-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    /* Gallery */
    .gallery-section {
        padding: 20px 10px;
    }

    .gallery-card {
        min-width: 200px;
    }

    .gallery-card img {
        height: 120px;
    }

    .gallery-controls button {
        padding: 8px 12px;
        font-size: 12px;
    }

    /* Footer */
    .footer {
        padding: 25px 10px 10px;
    }

    .footer-container {
        gap: 0;
    }

    .footer-col {
        width: 100%;
        margin-bottom: 15px;
    }

    .footer-col h3 {
        font-size: 16px;
    }

    .footer-col p {
        font-size: 13px;
    }

    .footer-bottom {
        font-size: 11px;
    }

    /* About Page Hero */
    .about-hero {
        height: 150px;
        padding-left: 15px;
        font-size: 24px;
    }
}

/* ===== COURSES PAGE SPECIFIC STYLES ===== */

/* Only apply vertical stacking to courses.html */
.about-page .about-card {
    flex-direction: column;
    align-items: center;
}

.about-page .about-img {
    width: 100%;
    display: flex;
    justify-content: center;
}

.about-page .about-img img {
    width: 350px;
    height: 250px;
    border-radius: 15px;
    object-fit: cover;
}

.about-page .about-content {
    width: 100%;
    text-align: center;
}

.about-page .about-content h2 {
    margin-bottom: 15px;
}

.about-page .about-content p {
    text-align: justify;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ===== COURSES PAGE CONTENT ALIGNMENT ===== */

.about-page .about-content {
    text-align: left;
}

.about-page .about-content h2 {
    text-align: left;
}

.about-page .about-content h3 {
    text-align: left;
}

.about-page .about-content p {
    text-align: left;
}

.about-page .about-content ol,
.about-page .about-content ul {
    text-align: left;
}

.about-page .about-content table {
    margin: 20px auto;
    width: 80%;
    max-width: 600px;
    border-collapse: collapse;
}

.about-page .about-content table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.about-page .about-content table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.about-page .about-content table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

/* ===== COURSES PAGE NEW LAYOUT ===== */

.courses-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.courses-wrapper {
    display: flex;
    gap: 30px;
    min-height: 600px;
}

/* COURSES SIDEBAR - BUTTONS */
.courses-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 180px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.course-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background-color: #d9d9d9;
    color: #232323;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-btn:hover {
    background-color: #c0c0c0;
    transform: translateX(5px);
}

.course-btn.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* COURSES CONTENT - DETAILS */
.courses-content {
    flex: 1;
    position: relative;
}

.course-detail {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.course-detail.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-detail-img {
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.course-detail-img img {
    width: 100%;
    max-width: 600px;
    height: 350px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.course-detail-content {
    text-align: left;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border-left: 5px solid #007bff;
}

.course-detail-content h2 {
    color: #232323;
    margin-bottom: 15px;
    font-size: 28px;
}

.course-detail-content h3 {
    color: #007bff;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 20px;
}

.course-detail-content p {
    color: #232323;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.course-detail-content ol,
.course-detail-content ul {
    color: #232323;
    margin-left: 20px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.course-detail-content li {
    margin-bottom: 10px;
}

.course-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.course-detail-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.course-detail-content table tr:last-child td {
    border-bottom: none;
}

.course-detail-content table tr:nth-child(even) {
    background-color: #f5f5f5;
}

.course-detail-content a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-detail-content a:hover {
    color: #0056b3;
    text-decoration: underline;
}


/* --- Members page specific styles (append to styles.css) --- */

.members-page {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.members-sidebar .course-btn {
    text-align: left;
    padding: 12px 18px;
    border-radius: 22px;
    background: #e9e9f2;
    color: #333;
}

    .members-sidebar .course-btn.active {
        background: linear-gradient(135deg,#3a66ff,#5a4bd8);
        color: #fff;
        box-shadow: 0 6px 18px rgba(58,102,255,0.15);
    }

.tab-content {
    display: none;
}

    .tab-content.active-tab {
        display: block;
    }

/* Principal image block: already styled inline in HTML; grid below for faculty cards */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(150px,1fr));
    gap: 18px;
    margin-bottom: 8px;
}

.faculty-card {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0,0,0,0.04);
}

    .faculty-card img {
        width: 100%;
        height: 140px;
        object-fit: cover;
        border-radius: 8px;
        background: #ddd;
    }

.f-name {
    font-size: 13px;
    color: #333;
    margin-top: 8px;
    line-height: 1.2;
}

    .f-name small {
        color: #888;
        font-size: 12px;
        display: block;
        margin-top: 6px;
    }

/* off-white container for all faculty image grids */
.faculty-grid {
    background: #fbfbfb; /* off-white */
    padding: 18px; /* space around cards */
    border-radius: 12px; /* rounded corners */
    gap: 18px; /* keep existing gap */
    margin-bottom: 18px; /* a bit more breathing room */
}


/* responsive tweaks */
@media (max-width:900px) {
    .courses-wrapper {
        flex-direction: column;
    }

    .members-sidebar {
        position: relative;
        display: flex;
        flex-direction: row;
        gap: 8px;
        margin-bottom: 12px;
        overflow: auto;
    }

        .members-sidebar .course-btn {
            min-width: 160px;
            white-space: nowrap;
        }

    .faculty-card img {
        height: 120px;
    }
}

/* ===== MOBILE RESPONSIVE ===== */

@media (max-width: 768px) {
    .courses-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .courses-sidebar {
        position: relative;
        top: 0;
        min-width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        overflow-x: auto;
        gap: 10px;
    }

    .course-btn {
        flex: 0 0 calc(50% - 5px);
        font-size: 13px;
        padding: 10px 15px;
    }

    .courses-content {
        width: 100%;
    }

    .course-detail-img img {
        height: 250px;
    }

    .course-detail-content {
        padding: 15px;
    }

    .course-detail-content h2 {
        font-size: 22px;
    }

    .course-detail-content h3 {
        font-size: 18px;
    }

    .course-detail-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .courses-container {
        padding: 20px 10px;
    }

    .courses-sidebar {
        flex-direction: column;
    }

    .course-btn {
        flex: 0 0 100%;
        font-size: 12px;
        padding: 10px 12px;
    }

    .course-detail-img img {
        height: 200px;
    }

    .course-detail-content {
        padding: 12px;
        border-left-width: 3px;
    }

    .course-detail-content h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .course-detail-content h3 {
        font-size: 16px;
        margin-top: 15px;
    }

    .course-detail-content table {
        font-size: 13px;
    }

    .course-detail-content table td {
        padding: 8px 10px;
    }
}

/* CONTACT US PAGE */
.contact-hero {
    background: url('images/AboutUs_1.jpg') center/cover no-repeat;
    height: 250px;
    display: flex;
    align-items: center;
    padding-left: 50px;
    color: white;
    font-size: 40px;
    font-weight: bold;
}

.contact-page {
    padding: 40px;
    background: #eee;
}

.contact-form-container {
    background: white;
    border-radius: 20px;
    padding: 50px;
    max-width: 1100px;
    margin: 0 auto 40px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

    .contact-form-container h2 {
        text-align: center;
        font-size: 28px;
        margin-bottom: 30px;
        color: #333;
    }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

    .form-row.full-width {
        flex-direction: row;
    }

    .form-row input,
    .form-row textarea {
        flex: 1;
        padding: 12px 20px;
        border: 1px solid #ddd;
        border-radius: 25px;
        font-family: Arial, sans-serif;
        font-size: 14px;
        color: #666;
        outline: none;
        transition: border-color 0.3s;
    }

        .form-row input::placeholder,
        .form-row textarea::placeholder {
            color: #999;
        }

        .form-row input:focus,
        .form-row textarea:focus {
            border-color: #3a66ff;
        }

    .form-row textarea {
        border-radius: 15px;
        resize: vertical;
        font-family: Arial, sans-serif;
    }

.form-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.submit-btn {
    background: #3a66ff;
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .submit-btn:hover {
        background: #2e52cc;
    }

    .submit-btn::after {
        content: "→";
    }

/* MAPS SECTION */
.maps-section {
    padding: 40px;
    background: #eee;
}

.maps-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.map-card {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

    .map-card h3 {
        font-size: 16px;
        margin-bottom: 15px;
        color: #333;
        text-align: center;
    }

    .map-card iframe {
        width: 100%;
        height: 300px;
        border: none;
        border-radius: 10px;
        margin-bottom: 15px;
    }

.map-info {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

    .map-info p {
        font-size: 13px;
        color: #666;
        margin: 8px 0;
        line-height: 1.5;
    }

        .map-info p strong {
            color: #333;
        }

/* add near the existing about / gallery styles (members area) */
/* Two-image horizontal layout for about page */
.about-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    margin-bottom: 20px;
    align-items: start;
}

.about-img-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.04);
    text-align: center;
}

    .about-img-card img {
        width: 100%;
        height: 260px; /* keep a consistent box height */
        object-fit: contain; /* show whole image without cropping */
        background: #f6f6f6; /* neutral fill for letterbox areas */
        border-radius: 10px;
        display: block;
    }

.about-caption {
    margin-top: 10px;
}

    .about-caption h4 {
        margin: 6px 0 4px;
        font-size: 16px;
        color: #222;
    }

    .about-caption p {
        margin: 0;
        color: #666;
        font-size: 14px;
    }

/* Find the .faculty-card img section (around line 1857) and update it:
   Change object-fit from 'cover' to 'contain' to prevent cropping */

.faculty-card img {
    width: 100%;
    height: 140px;
    object-fit: contain; /* Changed from 'cover' to 'contain' */
    border-radius: 8px;
    background: #ddd;
}

/* ===== fix: center faculty cards without changing image sizes or grid layout ===== */
.courses-content .tab-content .faculty-grid {
    justify-content: center; /* center the grid tracks as a whole */
}

    /* prevent each card from stretching to the full track and center it inside its cell */
    .courses-content .tab-content .faculty-grid .faculty-card {
        justify-self: center; /* center the card in the grid cell */
        max-width: 150px; /* matches the min width used by the grid cells */
        margin: 0; /* keep layout consistent */
    }

/* Add this mobile responsiveness for faculty grid - add AFTER the existing mobile media query for members */

@media (max-width: 768px) {
    .faculty-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
        padding: 12px;
    }

    .faculty-card {
        padding: 10px;
    }

        .faculty-card img {
            height: 120px;
        }

    .f-name {
        font-size: 12px;
    }
}


@media (max-width: 768px) {
    .gallery-card {
        min-width: 180px; /* keep cards usable on small screens */
    }

        .gallery-card img {
            height: auto !important;
            aspect-ratio: 4 / 3;
            max-height: 260px;
            object-fit: contain !important;
        }
}

@media (max-width: 480px) {
    .faculty-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .faculty-card {
        padding: 8px;
    }

        .faculty-card img {
            height: 100px;
        }

    .f-name {
        font-size: 11px;
    }

        .f-name small {
            font-size: 10px;
        }
}

/* responsive: stack images on smaller screens */
@media (max-width: 768px) {
    .about-images {
        grid-template-columns: 1fr;
    }

    .about-img-card img {
        height: 200px;
    }
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
    .contact-hero {
        height: 200px;
        font-size: 28px;
        padding-left: 20px;
    }

    .contact-page {
        padding: 20px;
    }

    .contact-form-container {
        padding: 25px;
        border-radius: 15px;
    }

        .contact-form-container h2 {
            font-size: 22px;
        }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

        .form-row.full-width {
            flex-direction: column;
        }

    .maps-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 10px;
    }

    .map-card iframe {
        height: 250px;
    }
}
.about-content p,
.about-page .about-content p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}
    .course-detail-content p a,
    .about-page .about-content p a {
        overflow-wrap: anywhere;
        word-wrap: break-word;
        word-break: break-word;
        white-space: normal;
        max-width: 100%;
    }