* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

main {
    flex: 1;
}

/* Navigation */
nav {
    background: #8e0b56;
    /* linear-gradient(135deg, #667eea 0%, #764ba2 100%); */

    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #ddd;
    color: #8e0b56;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Hero Section */
.hero {
    background: #8e0b56;
    /* linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: white;
    text-align: center;
    /* padding: 3rem 2rem; */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Carousel */
.carousel-container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 2rem;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    touch-action: pan-y;
}

.carousel-inner {
    display: flex;
    transition: transform 0.3s ease-out;
    cursor: grab;
}

.carousel-inner:active {
    cursor: grabbing;
}

.carousel-item {
    min-width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Notifications */
.notifications {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.notification-box {
    background: #8e0b56;
    /* linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.notification-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
}

/* Section Styling */
section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #8e0b56;
    ;
}

/* About Sections */
.about-section {
    background: #f8f9fa;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-section h3 {
    color: #8e0b56;
    ;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

/* Committee Members */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.member-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.member-card:hover {
    transform: translateY(-10px);
}

.member-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: #8e0b56;
    /* linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* Departments */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.dept-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.dept-card:hover {
    transform: translateY(-5px);
}

.dept-card h4 {
    color: #8e0b56;
    ;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.more-btn {
    background: #8e0b56;
    /* linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 1rem;
    font-weight: 600;
    transition: opacity 0.3s;
}

.more-btn:hover {
    opacity: 0.9;
}

/* Achievement Posts */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.achievement-post {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.achievement-img {
    width: 100%;
    height: 250px;
    background: #8e0b56;
    /* linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.achievement-content {
    padding: 1.5rem;
}

/* Progress List */
.progress-list {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.progress-item:last-child {
    border-bottom: none;
}

.download-btn {
    background: #8e0b56;
    text-align: center;
    width: 150px;
    height: 150px;
    /* Use flexbox to center content vertically and horizontally */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: opacity 0.3s;
    word-break: break-word;
    /* Prevent long words from overflowing */
}

.download-btn:hover {
    opacity: 0.8;
}

/* Future Plans Cards */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.plan-card {
    background: white;
    border-left: 5px solid #6b7bf5;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.plan-card h4 {
    color: #8e0b56;
    ;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-card p {
    color: #4a5568;
    line-height: 1.8;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #8e0b56;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8e0b56;
    ;
}

.submit-btn {
    background: #8e0b56;
    /* linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

/* Footer */
footer {
    background: #000000;
    margin-top: 100px;
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
    margin-bottom: 0;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: #8e0b56;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #8e0b56;
}

.links-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: #8e0b56;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #cbd5e0;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .carousel-item {
        height: 300px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    nav ul {
        gap: 1rem;
    }
}

/* Section Styling */
section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 5rem 2rem;
    flex: 1;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #8e0b56;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

iframe {
    margin: auto;
    display: block;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #8e0b56;
}

pre {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    white-space: pre-wrap;
    /* Preserve whitespace and wrap as needed */
    word-wrap: break-word;
    /* Break long words to prevent overflow */

}

/* Jantry Dashboard */
.jantry-dashboard h5 {
    text-align: center;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #8e0b56;
}

.jantry-iframe {
    width: 100%;
    height: 100vh;
    border: none;
}

@media (max-width: 768px) {
    .jantry-iframe {
        height: 80vh;
        /* Slightly smaller on mobile */
    }
}

/* Mobile Navigation & Responsive Fixes */
.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    margin-right: 1rem;
}

@media (max-width: 992px) {
    header {
        position: relative;
        padding: 0.5rem 1rem;
    }

    .hamburger-menu {
        display: block;
        order: 2;
    }

    /* Reorder header elements for mobile: Logo Left, Hamburger Right */
    header .logo:first-child {
        order: 1;
    }

    /* Hide second logo on mobile to save space, or keep it if needed. 
       Let's keep the first one and hide the second one for cleaner mobile look. */
    header .logo:last-child {
        display: none;
    }

    nav.nav-links {
        display: none;
        /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #8e0b56;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        order: 3;
    }

    nav.nav-links.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav a {
        display: block;
        padding: 0.5rem 0;
    }

    /* Dropdown on Mobile */
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.1);
        width: 100%;
        display: none;
        /* JS will toggle this */
    }

    .dropdown:hover .dropdown-content {
        display: none;
        /* Disable hover on mobile, use click */
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown>a::after {
        display: inline-block;
        /* visual indicator */
    }
}

.box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.box-progress {
    margin-left: 15px;
}

/* General Mobile Fixes */
@media (max-width: 768px) {

    .box {
        display: inline-flex;

        justify-content: center;
    }


    .box-progress {
        display: block;
        margin-left: 15px;
    }

    .logo img {
        height: 60px;
        /* Smaller logo on mobile */
        width: auto;
    }

    .carousel-item {
        font-size: 1.2rem;
        /* Smaller text in carousel */
        height: 250px;
    }

    .download-btn {
        width: 100px;
        height: 100px;
        padding: 2rem 0.5rem;
        font-size: 0.9rem;
    }

    section {
        margin: 2rem auto;
        padding: 2rem 1rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    /* Ensure tables or iframes don't overflow */
    .table-responsive {
        overflow-x: auto;
    }
}