/* GLOBAL */
body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    background: url("../Images/homepage_background.jpeg") no-repeat center center fixed;
    background-size: cover;
}

/* CENTER PAGE */
.page-container {
    width: 1131px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 25px rgba(0,0,0,0.2);
}

/* HEADER */
.hero {
    position: relative;
    height: 359px;
    width: 1131px;
    background: url("../Images/image_background.png") center/cover no-repeat;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-text h1 {
    margin: 0;
    font-size: 48px;
    letter-spacing: 4px;
    font-weight: 700;
}

.hero-text h2 {
    margin: 15px 0;
    font-weight: 300;
    font-size: 22px;
}

.hero-text p {
    margin: 5px 0;
    font-size: 18px;
}

.date-location {
    font-weight: bold;
    margin-top: 10px;
}

/* LAYOUT */
.content-wrapper {
    display: flex;
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background-color: #f2f2f2;
    padding: 30px 20px;
    border-right: 1px solid #ddd;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

.sidebar li:hover {
    color: #003366;
    padding-left: 8px;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    padding: 50px;
    line-height: 1.7;
    color: #333;
}

.main-content h1 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #002244;
}

.main-content h2 {
    margin-top: 40px;
    font-size: 24px;
    color: #003366;
}

.lead {
    font-size: 18px;
    margin-bottom: 20px;
}

.committee ul {
    list-style: none;
    padding: 0;
}

.committee li {
    padding: 6px 0;
}
.sidebar a {
    text-decoration: none;
    color: inherit;
}

.sidebar a:hover {
    text-decoration: none;   /* keeps underline from appearing on hover */
}
/* Contact Page Styling */
.small-hero {
    height: 359px;
}

.contact-email {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 20px;
}

.contact-email a {
    color: #1e3a8a;
    text-decoration: none;
    border-bottom: 2px solid #1e3a8a;
    transition: 0.3s ease;
}

.contact-email a:hover {
    color: #0f172a;
    border-bottom: 2px solid #0f172a;
}

/* Active sidebar link */
.sidebar a.active {
    font-weight: bold;
    color: #1e3a8a;
}
/* Smaller hero for subpages */
.small-hero {
    height: 359px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Poster download box */
.poster-box {
    margin-top: 30px;
    padding: 30px;
    background: #f4f6f9;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Download button */
.download-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background-color: #1e3c72;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s ease;
}

.download-btn:hover {
    background-color: #2a5298;
    transform: translateY(-2px);
}

/* Active sidebar link */
.sidebar a.active {
    font-weight: bold;
    color: #1e3c72;
}
/* Society Branding Block */
.society-brand {
    position: absolute;
    top: 25px;
    left: 40px;   /* moved from right to left */
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3;
}

.society-brand img {
    width: 80px;
    height: auto;
    opacity: 0.95;
}

.society-text {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: left;
    line-height: 1.2;
    color: white;
}

.society-text span {
    display: block;
}

/* Make hero positioned relative so absolute works */
.hero {
    position: relative;
}
/* ============================= */
/* STYLISH SIDEBAR DROPDOWN */
/* ============================= */

.sidebar {
    overflow: visible;
}

/* Dropdown container */
.dropdown {
    position: relative;
}

/* Button */
.dropdown-btn {
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    text-align: left;
    padding: 12px 0;
    color: #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s ease;
}

/* Arrow icon */
.dropdown-btn::after {
    content: "▸";
    font-size: 14px;
    transition: transform 0.3s ease;
}

/* Rotate arrow when active */
.dropdown-btn.active::after {
    transform: rotate(90deg);
}

/* Hover effect */
.dropdown-btn:hover {
    color: #1e3c72;
    padding-left: 8px;
}

/* Dropdown content */
.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding-left: 15px;
}

/* When open */
.dropdown-content.show {
    max-height: 200px;
}

/* Submenu links */
.dropdown-content li {
    border: none;
    padding: 8px 0;
}

.dropdown-content a {
    font-size: 14px;
    color: #555;
    transition: 0.3s ease;
}

.dropdown-content a:hover {
    color: #1e3c72;
    padding-left: 6px;
}
/* Metro Map Image Styling */
.metro-image {
    margin-top: 20px;
    text-align: center;
}

.metro-image img {
    width: 100%;
    max-width: 750px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.metro-image img:hover {
    transform: scale(1.02);
}
/* Lunch Section Grid */
.lunch-grid {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

/* Text column */
.lunch-text {
    flex: 1;
    min-width: 280px;
}

/* Image column */
.lunch-image {
    flex: 1;
    text-align: center;
    min-width: 280px;
}

.lunch-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.lunch-image img:hover {
    transform: scale(1.02);
}
/* Visa Highlight Box */
.visa-highlight {
    background: #eef3fa;
    border-left: 4px solid #1e3c72;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 500;
}
.committee {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fb;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.committee h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #1d3557;
    letter-spacing: 1px;
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 30px;
    font-size: 1.05rem;
    color: #333;
}

.committee-grid div {
    padding: 8px 0;
    border-bottom: 1px solid #e2e6ea;
    text-align: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

.committee-grid div:hover {
    transform: translateY(-2px);
    color: #0b3d91;
}
/* Flex container for heading + button */
.heading-with-button {
    display: flex;
    align-items: center;
    justify-content: space-between; /* h1 left, button right */
    margin-bottom: 20px;
    flex-wrap: wrap; /* ensures responsiveness on small screens */
}

.heading-with-button h1 {
    font-size: 2.5rem;
    margin: 0;
    color: #222;
}

/* Stylish register button */
.register-btn {
    background: linear-gradient(90deg, #FF7F50, #FF4500);
    color: white;
    padding: 10px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}
.contact-form {
    max-width: 600px;
    align-self: start;
    margin: auto;
    flex-direction: column;
}

.contact-form form {
    display: flex;
    align-self: start;
    flex-direction: column;
}

.contact-form label {
    margin-top: 15px;
    align-content: start;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    resize: vertical;
    flex-direction: column;
    border-radius: 5px;
}

.contact-form button {
    margin-top: 20px;
    padding: 12px;
    background: #003366;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.contact-form button:hover {
    background: #0055aa;
}
/* ============================= */
/* CONTACT PAGE UI IMPROVEMENTS  */
/* ============================= */

.contact-page {
    max-width: 100%;
}

.contact-header-block {
    margin-bottom: 24px;
}

.contact-header-block h1 {
    margin-bottom: 10px;
}

.contact-info-card,
.contact-form-card {
    background: #f8fafc;
    border: 1px solid #e5eaf1;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.contact-info-card {
    margin-bottom: 28px;
    padding: 22px 24px;
}

.contact-info-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-email {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.contact-email a {
    color: #1e3a8a;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-email a:hover {
    color: #0f172a;
    border-bottom-color: #1e3a8a;
}

.contact-form-card {
    padding: 28px 30px;
}

.contact-form-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1d3557;
    font-size: 1.6rem;
}

.contact-form {
    max-width: 100%;
    margin: 0;
}

.contact-form form {
    display: block;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field-full {
    grid-column: 1 / -1;
}

.contact-form label {
    margin: 0 0 8px 0;
    font-weight: 700;
    color: #1f2937;
}

.contact-form label span {
    color: #b91c1c;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 1rem;
    line-height: 1.5;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 4px rgba(30, 60, 114, 0.12);
    background: #fff;
}

.contact-form input.invalid {
    border-color: #c62828;
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.1);
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
    overflow-y: hidden;
    font-family: inherit;
}

.form-meta {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

#message-counter {
    margin: 0;
    font-size: 0.92rem;
    color: #6b7280;
}

#message-counter.warning {
    color: #b45309;
    font-weight: 700;
}

.contact-submit-btn {
    margin-top: 22px;
    padding: 13px 20px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 6px 16px rgba(30, 60, 114, 0.2);
}

.contact-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(30, 60, 114, 0.24);
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin-top: 14px;
    min-height: 24px;
    font-weight: 600;
}

.form-status.info {
    color: #1d4ed8;
}

.form-status.success {
    color: #15803d;
}

.form-status.error {
    color: #b91c1c;
}

/* Improve subpage hero readability */
.small-hero .hero-text h1,
.small-hero .hero-text p {
    color: white;
    position: relative;
    z-index: 2;
}

/* Better responsiveness */
@media (max-width: 1160px) {
    .page-container,
    .hero {
        width: 100%;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: auto;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .main-content {
        padding: 30px 24px;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: 22px 18px;
    }

    .society-brand {
        left: 20px;
        top: 18px;
        gap: 10px;
    }

    .society-brand img {
        width: 60px;
    }

    .society-text {
        font-size: 9px;
    }

    .hero-text h1 {
        font-size: 34px;
        letter-spacing: 2px;
    }

    .hero-text p {
        font-size: 16px;
    }
}
/* Important dates + quick links */
.info-panels {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    flex-direction: column;
    margin: 35px 0 10px;
    align-items: start;
}

.info-card {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 28px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.info-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1d3557;
    font-size: 1.7rem;
}

.dates-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.date-row {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e6ea;
}

.date-row:last-child {
    border-bottom: none;
}

.date-row .date {
    font-weight: 700;
    color: #0b3d91;
}

.date-row .event {
    color: #333;
}

.quick-links-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quick-link {
    display: block;
    padding: 14px 16px;
    background: white;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    text-decoration: none;
    color: #1e3c72;
    font-weight: 700;
    transition: all 0.25s ease;
}

.quick-link:hover {
    background: #1e3c72;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .info-panels {
        grid-template-columns: 1fr;
    }

    .date-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}
/* Fix textarea expansion inside grid */
.form-field-full textarea {
    display: block;
    width: 100%;
    min-height: 180px;
    resize: vertical;
    overflow-y: hidden;
    box-sizing: border-box;
}