/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-green: #2e7d32;
    --dark-green: #1a3c24;
    --light-green: #5a8f69;
    --hover-green: #4a7f59;
    --nav-bg: rgb(233, 230, 230);
    --nav-mobile-bg: rgb(119, 122, 121);
    --text-main: #1a1a1a;
    --text-light: #555;
    --white: #ffffff;
    --footer-text: #e0e0e0;
    --light-grey: #f9f9f9;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, Arial;
    background-image: url('./Images/back2.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-main);
    margin-top:84px;
}

main {
    text-align: center;
}

section {
    min-height: fit-content;
    padding-bottom: 5%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   2. NAVIGATION
   ========================================= */
nav {
    position: fixed;
    background-color: var(--nav-bg);
    width: 100%;
    top: 0;
    min-height: 84px;
    display: flex;
    align-items: center;
    z-index: 9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav .home_p {
    margin-right: auto;
    margin-left: 5%;
    display: flex;
}

#options {
    display: flex;
    z-index: 5;
}

#options ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav a.links {
    display: flex;
    color: rgb(23, 104, 66);
    padding: 1em 1.5em;
    transition: 350ms ease-in-out;
    font-weight: bolder;
}

nav .links:hover {
    text-decoration: underline;
    background-color: rgba(23, 104, 66, 0.1);
}

/* Mobile Menu Buttons */
.close_button,
.open_button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: none; /* Hidden on desktop */
    align-items: center;
    justify-content: center;
}

/* Mobile Overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 8;
    display: none;
}

/* =========================================
   3. HERO SECTIONS
   ========================================= */
/* Main Home Hero */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('./Images/homecover.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0.9;
}

.hero-btn {
    padding: 12px 40px;
    border: 2px solid var(--white);
    background-color: transparent;
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background-color: var(--white);
    color: #333;
}

/* About Us Hero Header */
header.hero {
    background: linear-gradient(rgba(0, 128, 0, 0.8), rgba(0, 128, 0, 0.8)), url('your-background.jpg') no-repeat center center/cover;
    padding: 60px 20px;
    color: var(--white);
    text-align: center;
}

/* Newsletter Header */
.unique {
    background-color: #006400;
    padding: 2rem;
    text-align: center;
    color: var(--white);
    margin-bottom: 2rem;
}

/* =========================================
   4. MISSION & ABOUT
   ========================================= */
.mission-section {
    background-color: var(--light-grey);
    padding: 80px 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 18px;
}

.mission-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
    color: #2e7d32;
}

.mission-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 40px;
}

.stats-row {
    display: flex;
    gap: 50px;
    color: #4a7f59
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin: 0;
    color: #4a7f59;
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
    object-fit: cover;
    max-height: 500px;
}

/* Founder Section */
.founder-section {
    text-align: center;
    padding: 30px;
    max-width: 90%;
    margin: 40px auto;
    background-color: rgba(80, 100, 93, 0.7);
    color: #f9f9f9;
    border-radius: 10px;
}

.founder-section .content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    column-gap: 4%;
    flex-wrap: wrap;
}

.founder-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid #f9f9f9;
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-quote {
  
    font-size: 16px;
    line-height: 1.6;
    max-width: 60%;
    font-style: italic;
}

.founder-heading {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;

}

.founder-name {
  font-weight: bold;
}
/* =========================================
   5. EVENTS & COLLABORATIONS
   ========================================= */
.events-section {
    padding: 20px 20px;
}

.events-container {
    max-width: max-content;
    margin: auto auto;
    display: flex;
}

.event-sidebar {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px; /* Below nav */
}

.event-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
    transition: transform 0.2s;
}

.date-badge {
    background-color: #e8f5e9;
    color: var(--primary-green);
    padding: 10px 15px;
    border-radius: 12px;
    text-align: center;
    min-width: 60px;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
}

.view-all-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    margin-top: 20px;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}
.view-all-btn:hover {
    background-color: #1b5e20;
    scale: 1.02;
}

/* Collaboration Section */
.collaboration-section {
    background-color: rgba(32, 59, 40, 0.6);
    padding: 80px 20px;
    text-align: center;
    color: var(--white);
}

.logo-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
}
.partner-logo {
    height: 11vh;
    width: auto;
    border-radius: 12px;
    box-shadow:15px 15px rgba(32, 59, 40, 0.1);
    opacity: 0.9;
    transition: transform 0.3s;
}

.partner-item:hover .partner-logo {
    transform: scale(1.1);
}

/* =========================================
   6. GALLERY & CARDS
   ========================================= */
.gallery-section {
    background-color: #f0fdf4;
    padding: 60px 20px;
    text-align: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.card {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 15px;
}

/* Refactored Gallery Containers */
.gallery-container {
    border: 2px solid #1d3f1d;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    max-width: 1200px;
    margin: auto;
    border-radius: 10px;
}

/* Modifier for specific spacing (previously .gallery-container_S) */
.gallery-container.spaced {
    margin-top: 50px;
    padding-top: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    justify-content: center;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s ease-in-out;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.imageB {
    text-align: center;
    margin-bottom: 20px;
    font-size: 30px;
    font-weight: bold;
}

/* =========================================
   7. NEWSLETTER
   ========================================= */
.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.newsletter-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.newsletter-card:hover {
    transform: translateY(-5px);
}

.newsletter-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-view {
    background-color: #dbd832;
    color: #000;
}

.btn-download {
    background-color: #006400;
    color: var(--white);
}

/* =========================================
   8. FOOTER
   ========================================= */
.site-footer {
    background-color: var(--dark-green);
    color: var(--white);
    padding: 60px 20px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p, 
.footer-links a {
    text-align: center;
    color: var(--footer-text);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: #8abf9e;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.icon{
  width: 60%;
  height: 60%;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--light-green);
}

.newsletter-form input[type="email"] {
    padding: 12px;
    border: none;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 10px;
}

.newsletter-form button {
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: var(--light-green);
    color: var(--white);
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--footer-text);
}

/* =========================================
   Members Section
   ========================================= */
/* Specifics for Events.html headers */
.text-content {
  margin: 0 auto;
}

.stats-row {
  justify-content: center;
}

.our-people-section {
  background-color: #f4f9f4;
  padding: 60px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
}

.people-heading {
  color: #2e7d32;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
}


.people-grid-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 40px 30px;
}


.person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 170px;
}


.person-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.person-card:hover .person-avatar {
  transform: scale(1.08);
  border-color: #2e7d32;
  border-width: 5px;
}


.person-fullname {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 5px 0;
}

.person-designation {
  font-size: 0.9rem;
  color: #2e7d32;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  width: 100%;
}

.view-all-members {
  color:#2e7d32;
  font-weight: bolder;
  text-align: center;
  margin-top: 20px;
  cursor: pointer;
}

.view-all-members:hover {
  transform: scale(1.02);
}

/* =========================================
   9. EVENT & STORY SPECIFICS
   ========================================= */
/* Specifics for Events.html headers */
.header1 {
    background-color: #006400;
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--white);
}

.main-content {
    max-width: 1500px;
    margin: 2.5rem auto;
    padding: 2rem;
}

.intro-section,
.inaugural-section,
.technical-section,
.valedictory-section,
.conclusion-section,
.final-note-section {
    background-color: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.section-text,
.intro-paragraph {
  margin-bottom: 1.25rem;
  text-align: left;
}

.custom-list {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
  }
/* Stories (Timeline) */
.story {
        background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 40px;
}
/* Stories (Timeline) */
.story1 {
    padding: 50px 20px;
    background-color: rgba(80, 100, 93, 0.7);
    width: 100%;
    color: var(--white);
    margin-bottom: 20px;
    text-decoration-color: #000;
}

.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.event {
    max-width: 1000px;
    padding: 20px;
    border-left: 4px solid green;
    background: #fff;
    position: relative;
    text-align: left;
    color: #333;
}

.event::before {
    content: "";
    width: 14px;
    height: 14px;
    background: green;
    border-radius: 50%;
    position: absolute;
    left: -10px;
    top: 25px;
}

/* Testimony */
.testimony {
    padding: 20px;
    margin-top: 30px;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.testimony .name {
    font-weight: bold;
    font-size: .95rem;
    color: #2b6c2f;
    text-align: right;
}

.testimony .text {
  font-family: "josefin sans", sans-serif;
  font-size: 0.9rem;
  font-weight: lighter;
  color: #444;
  font-style: italic;
  text-align: justify;
}


.t_frameR {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    column-gap: 2%;
    flex-wrap: wrap;
    margin-top: 30px;
}

.t_frameL {
    display: flex;
    flex-direction: row;
    flex-flow: row-reverse;
    justify-content: center;
    align-items: center;
    column-gap: 2%;
    flex-wrap: wrap;
    margin-top: 30px;
}

.t_frameR .text-right{
  text-align: right;
  max-width: 50%;
  margin-top: 5%;
  margin-bottom: 10%;
  margin-left: auto;
  margin-right: 10%;
}

.t_frameL .text-left {
  text-align: left;
  max-width: 50%;
  margin-top: 5%;
  margin-bottom: 10%;
  margin-right: auto;
  margin-left: 10%;
}


.testi-image{
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-right: 5%;
    margin-left: 5%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    justify-self: center;
}

@media screen and (max-width: 1030px) {
    .testi-image {
        width: 175px;
        height: 175px;
    }
    .testimony .text {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 890) {
    .testi-image {
        width: 150px;
        height: 150px;
    }
    .testimony .text {
        font-size: 0.80rem;
    }
}

.footer1 {
    text-align: center;
    color: #000;
    padding: 1.2rem;
    background-color: #ffffff;
    font-size: 1rem;
    margin-top: 3rem;
  }

.testi-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
/* =========================================
   10. MOBILE / RESPONSIVE
   ========================================= */
@media screen and (max-width: 768px) {
    /* Mobile Navigation */
    #options {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 60%;
        transition: right 300ms ease-in-out;
        z-index: 1001;
        background-color: var(--nav-mobile-bg);
        flex-direction: column;
        padding-top: 60px;
    }
    
    #options.show {
        right: 0;
    }

    #options.show ~ #overlay {
        display: block;
    }

    #options ul {
        padding: 5%;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    #options ul li {
        width: 100%;
    }

    nav a.links {
        color: var(--white);
        width: 100%;
        padding: 1.5em;
    }

    .close_button, .open_button {
        display: flex;
    }
    
    .open_button {
        margin-right: 5%;
    }

    /* Typography Scaling */
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .mission-title { font-size: 2rem; }
    .sasyam-title { font-size: 4rem; }

    /* Layout Stacking */
    .mission-container,
    .mission-section,
    .events-container,
    .logo-container,
    .founder-section .content,
    .stats-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .stat-item p {
        margin: 5px 0 0;
        color: #666;
        font-size: 0.9rem;
        font-weight: 500;
      }

    .event-sidebar {
        position: static;
        margin-top: 30px;
    }

    .founder-quote {
        max-width: 100%;
    }

    .text-content {
        margin: 0 auto;
    }

    .footer-content {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    .testimony .t_frameR, .testimony .t_frameL {
        flex-direction: column;
        align-items: center;
    }
    .t_frameL .text-left, .t_frameR .text-right {
        text-align: center;
        max-width: 80%;
        margin-top: 20px;
    }
    .testimony .text{
        text-align: center;
        scale: 0.95;
    }
    .header-title {
        font-size: 1.6rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .section-text,
    .intro-paragraph {
        font-size: 0.95rem;
        text-align: justify;
    }
    
}