/* --- 1. PALETTE & FONTS --- */
:root {
    --deep-forest: #2F4F3A;
    --moss-green: #4B6B4A;
    --muted-green: #6F8F62;
    --sage-green: #8FAF7A;
    --off-white: #F5F7F5;
    --rich-black: #0F0F0F;
    --header-font: 'Libre Baskerville', serif;
    --body-font: 'Montserrat', sans-serif;
    --nav-font: 'Montserrat', serif;
}

* {
    margin: 0;
    padding: 0; 
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--off-white);
    color: var(--rich-black);
    overflow-x: hidden;
}

/* --- GLOBAL LINKS --- */
a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* --- NAVIGATION --- */
nav {
    font-family: var(--nav-font);
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.6rem 8%;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

nav a:not(.mun-back-to-main) {
    border: none !important;
    padding: 0 !important;
    background: none !important;
    color: white !important;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 50px;
    list-style: none;
}

nav img {
    height: 50px;
    width: auto;
}

nav a:hover {
    opacity: 0.7;
}

nav a.mun-back-to-main:hover {
    opacity: 1 !important;
}

/* DROPDOWNS */
.aboutdrop, .committeedrop { 
    position: relative; 
}

.aboutcont, .committeecont {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    max-height: 70vh;
    overflow-y: auto;
    background-color: rgba(15, 15, 15, 0.95);
    padding: 1rem;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1001;
    border-radius: 4px;
}

.aboutdrop:hover .aboutcont,
.committeedrop:hover .committeecont { 
    display: flex; 
}

.aboutcont a, .committeecont a {
    font-size: 0.8rem !important;
    font-family: var(--body-font);
    padding: 6px 0 !important;
    border: none !important;
    text-transform: none;
    letter-spacing: normal;
}

.arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  vertical-align: 4px;
}

nav a:hover .arrow {
  transform: rotate(-45deg) scaleY(-1) translateY(-2px) translateX(-3px);
}

/* --- HERO SECTION --- */
.Hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    min-height: 85vh;
    width: 100%;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(50%);
}

.content {
    position: relative;
    z-index: 1;
    padding: 0 5%;
    width: 100%;
    max-width: 1200px;
    margin-top: 140px;
}

.Hero h1 {
    font-family: var(--header-font);
    white-space: nowrap;
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 15px 0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.Hero p {
    font-family: var(--header-font);
    font-size: 1.25rem;
    color: white;
    letter-spacing: 1px;
}

.theme {
    font-size: 1rem !important;
    display: block;
    font-style: italic;
    opacity: 0.9;
    margin-top: 15px;
}

.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 18px 36px;
    border: 2px solid white;
    color: white;
    font-family: var(--body-font);
    font-weight: 700;
    text-transform: uppercase;
    background: transparent;
    cursor: pointer;
}

.btn:hover {
    background: var(--sage-green);
    border-color: var(--sage-green);
    color: white;
    transform: scale(1.05);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.4);
}

.registerbtn {
    margin: 20px 0;
}

/* --- SECRETARIAT SPEECH SECTION --- */
.Secretariat-Content {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 5%;
    background: transparent;
    box-shadow: none;
    height: auto !important; /* Overrides global section height */
}

.Secretariat-Content .content-container {
    width: 100%;
}

.section-title {
    font-family: var(--header-font);
    font-size: clamp(2.4rem, 4.5vw, 3.5rem);
    color: var(--deep-forest) !important; /* Uses your dark green CSS variable */
    text-align: left;
    margin-bottom: 35px;
    line-height: 1.15;
    font-weight: 700;
}

.speech-wrapper {
    display: flex;
    flex-direction: row;
    gap: 50px;
    align-items: flex-start;
}

/* Speech Text (Left) */
.speech-text {
    flex: 1;
    color: #000000 !important; /* Black speech text */
    font-family: var(--body-font);
    font-size: 0.95rem;
    line-height: 1.75;
    text-align: left;
}

.speech-text p {
    color: #000000 !important;
    margin-bottom: 18px;
    font-family: var(--body-font);
}

.speech-text a {
    color: #000000;
    text-decoration: underline;
    font-weight: 600;
}

.theme-quote {
    color: #000000 !important;
    font-family: var(--body-font);
    font-size: 1rem;
    margin: 20px 0 !important;
}

/* Signature & Credentials Block */
.signature-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Right aligned beneath text like reference image */
    text-align: right;
}

.sign-off {
    font-weight: 600;
    margin-bottom: 10px !important;
    color: #000000 !important;
}

.sg-signature {
    max-height: 55px;
    width: auto;
    margin-bottom: 15px;
    display: block;
}

.sg-details {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #000000;
}

.sg-details p {
    margin-bottom: 2px !important;
    color: #000000 !important;
}

.sg-details .sg-name {
    font-weight: 700;
}

.sg-details a {
    color: #000000 !important;
    text-decoration: underline;
}

/* Photo Box (Right) */
.speech-profile-box {
    flex: 0 0 420px;
    width: 420px;
    position: relative;
    top: 40px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.sg-speech-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .speech-wrapper {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .speech-profile-box {
        width: 100%;
        flex: none;
        position: static;
    }

    .signature-container {
        align-items: flex-start;
        text-align: left;
    }
}

/* --- SPONSORS SECTION (100% SCALED WITH PADDING) --- */
.Sponsors-Section {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 90px auto;
    padding: 0 5%;
    text-align: center;
    height: auto !important;
}

.sponsors-title {
    font-family: var(--header-font);
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: var(--deep-forest);
    text-transform: uppercase;
    margin-bottom: 35px;
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.sponsor-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 10px 15px; /* Small internal padding buffer */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    width: 280px;  /* Controls card width */
    height: 130px; /* Controls card height */
}

.sponsor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.sponsor-logo {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Scales to fill the padded card cleanly */
    display: block;
}

@media (max-width: 650px) {
    .sponsor-card {
        width: 100%;
        max-width: 300px;
        height: 120px;
    }
}
/* --- FEATURE BANNER SECTIONS WITH BACKGROUND IMAGES --- */
.banner-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 85vh;
    padding: 60px 10%;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.3);
}

.banner-section h1 {
    font-family: var(--header-font);
    color: white;
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.banner-section p {
    font-family: var(--body-font);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.committee { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../../resources/DSC_3372.jpg'); 
}

.About { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../../resources/DSC_3353.jpg'); 
}

.Preparation { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../../resources/DSC_3558.jpg'); 
}

.Registration { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../../resources/DSC_3525.jpg'); 
}

/* --- FOOTER --- */
footer {
    background-color: var(--rich-black);
    padding: 40px 0;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.footer-social a {
    color: var(--off-white);
    font-size: 1.4rem;
    border: none;
}

.footer-social a:hover {
    color: var(--sage-green);
    transform: translateY(-2px);
}
