/* =========================================
   GLOBAL RESET
========================================= */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Segoe UI',sans-serif;
    background:#ffffff;
    color:#1e293b;
    line-height:1.7;
    overflow-x:hidden;
}

/* =========================================
   NAVBAR
========================================= */

header{
    position:fixed;
    top:0;
    width:100%;

    padding:18px 8% 18px 6%;

    display:flex;
    justify-content:space-between;
    align-items:center;

    background:rgba(255,255,255,0.96);

    backdrop-filter:blur(12px);

    border-bottom:1px solid rgba(0,0,0,0.06);

    z-index:1000;

    box-shadow:0 4px 20px rgba(0,0,0,0.04);
}

.logo{
    text-decoration:none;

    font-size:1.5rem;
    font-weight:700;

    color:#14532d;

    transition:0.35s ease;
}

.logo:hover{
    transform:scale(1.05);
}

nav{
    display:flex;
    align-items:center;
}

nav a{
    margin-left:24px;

    text-decoration:none;

    color:#475569;

    font-weight:500;

    position:relative;

    transition:0.35s ease;
}

nav a::after{
    content:'';

    position:absolute;

    left:0;
    bottom:-8px;

    width:0%;
    height:2px;

    background:#14532d;

    transition:0.35s ease;
}

nav a:hover{
    color:#14532d;

    transform:translateY(-2px);
}

nav a:hover::after{
    width:100%;
}

/* =========================================
   HERO SECTION
========================================= */

.hero{
    height:100vh;

    position:relative;

    overflow:hidden;

    display:flex;
    justify-content:center;
    align-items:center;

    text-align:center;
}

.slider{
    position:absolute;
    inset:0;

    z-index:1;
}

.slide{
    position:absolute;
    inset:0;

    background-size:cover;
    background-position:center;

    opacity:0;

    animation:fade 18s infinite;
}

.slide::after{
    content:'';

    position:absolute;
    inset:0;

    background:rgba(255,255,255,0.68);
}

.slide:nth-child(1){
    background-image:url('./Images/home/2.jpg');

    animation-delay:0s;
}

.slide:nth-child(2){
    background-image:url('./Images/home/3.jpg');

    animation-delay:6s;
}

.slide:nth-child(3){
    background-image:url('./Images/home/4.png');

    animation-delay:12s;
}

.hero-content{
    position:relative;

    z-index:2;

    max-width:900px;

    padding:0 8%;

    animation:fadeUp 1.2s ease;
}

.hero-content h1{
    font-size:4.2rem;

    margin-bottom:24px;

    color:#0f172a;

    line-height:1.15;
}

.hero-content p{
    font-size:1.15rem;

    color:#475569;

    max-width:780px;

    margin:auto;

    line-height:1.9;

    text-align:justify;
    text-align-last:center;
}

/* =========================================
   BUTTONS
========================================= */

.btn{
    display:inline-block;

    margin-top:34px;

    padding:14px 32px;

    border-radius:50px;

    background:#14532d;

    color:white;

    text-decoration:none;

    font-weight:600;

    transition:0.35s ease;
}

.btn:hover{
    transform:translateY(-4px);

    box-shadow:0 12px 28px rgba(20,83,45,0.18);
}

/* =========================================
   CONTAINERS
========================================= */

.container{
    max-width:1200px;

    margin:auto;

    padding:70px 24px;
}

.section-title{
    text-align:center;

    font-size:2.4rem;

    margin-bottom:40px;

    color:#14532d;
}

/* =========================================
   CARD GRID
========================================= */

.card-grid{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:30px;
}

/* =========================================
   CARDS
========================================= */

.card{
    background:white;

    padding:34px;

    border-radius:24px;

    box-shadow:0 10px 28px rgba(0,0,0,0.06);

    transition:0.35s ease;
}

.card:hover{
    transform:translateY(-8px);

    box-shadow:0 16px 36px rgba(0,0,0,0.1);
}

.card h3{
    margin-bottom:14px;

    color:#0f172a;
}

.card p{
    color:#475569;

    text-align:justify;

    line-height:1.9;
}

/* =========================================
   PAGE HEADER
========================================= */

.page-header{
    padding:120px 20px 40px;

    text-align:center;

    background:#f8fafc;
}

.page-header h1{
    font-size:3rem;

    color:#0f172a;
}

/* =========================================
   PEOPLE PAGE
========================================= */

.people-wrapper{
    max-width:1100px;

    margin:0 auto;
}

.people-section{
    margin-bottom:70px;
}

.member-grid{
    display:flex;

    flex-wrap:wrap;

    justify-content:center;

    gap:30px;
}

.member-card{
    width:300px;

    background:white;

    border-radius:24px;

    overflow:hidden;

    box-shadow:0 10px 28px rgba(0,0,0,0.06);

    transition:0.35s ease;

    flex-shrink:0;
}

.member-card:hover{
    transform:translateY(-8px);

    box-shadow:0 16px 36px rgba(0,0,0,0.1);
}

.member-card img{
    width:300px;
    height:300px;

    object-fit:cover;

    display:block;
}

/* =========================================
   MEMBER INFO
========================================= */

.member-info{
    padding:12px 20px 16px 20px;
}

.member-info h3{
    margin-top:0;

    margin-bottom:2px;

    line-height:1.2;

    color:#0f172a;

    font-size:1.55rem;
}

.member-role{
    color:#14532d;

    font-weight:700;

    margin-bottom:6px;

    margin-top:0;

    line-height:1.2;
}

.member-info p{
    text-align:justify;

    line-height:1.45;

    letter-spacing:0.1px;

    word-spacing:0.5px;

    margin-top:0;

    color:#475569;

    font-size:0.97rem;
}

/* =========================================
   GALLERY
========================================= */

.gallery-grid{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));

    gap:28px;
}

.gallery-item{
    background:white;

    border-radius:22px;

    overflow:hidden;

    cursor:pointer;

    box-shadow:0 8px 24px rgba(0,0,0,0.05);

    transition:0.35s ease;
}

.gallery-item:hover{
    transform:translateY(-6px);
}

.gallery-item img{
    width:100%;

    height:260px;

    object-fit:cover;

    transition:0.4s ease;
}

.gallery-item:hover img{
    transform:scale(1.05);
}

.gallery-content{
    padding:20px;
}

.gallery-content p{
    text-align:justify;

    line-height:1.8;
}

/* =========================================
   GALLERY CATEGORY STYLE
========================================= */

.gallery-category{
    margin-bottom:60px;
}

.gallery-category h2{
    margin-bottom:22px;

    color:#14532d;

    font-size:2rem;
}

.gallery-row{
    display:flex;

    gap:22px;

    flex-wrap:wrap;
}

.gallery-row img{
    width:350px;

    height:240px;

    object-fit:cover;

    border-radius:20px;

    cursor:pointer;

    transition:0.35s ease;

    box-shadow:0 8px 24px rgba(0,0,0,0.05);
}

.gallery-row img:hover{
    transform:translateY(-6px) scale(1.02);

    box-shadow:0 14px 30px rgba(0,0,0,0.12);
}

/* =========================================
   LIGHTBOX
========================================= */

.lightbox{
    display:none;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,0.92);

    z-index:3000;

    justify-content:center;
    align-items:center;

    flex-direction:column;
}

.lightbox img{
    max-width:85%;

    max-height:80vh;

    border-radius:18px;
}

.lightbox-controls{
    margin-top:24px;
}

.lightbox button{
    padding:12px 18px;

    margin:0 8px;

    border:none;

    border-radius:12px;

    background:white;

    cursor:pointer;

    font-size:1rem;

    transition:0.3s ease;
}

.lightbox button:hover{
    transform:translateY(-2px);
}

/* =========================================
   EVENTS
========================================= */

.event-timeline{
    display:flex;

    flex-direction:column;

    gap:30px;
}

.event-card{
    display:flex;

    gap:24px;

    align-items:center;

    background:white;

    padding:24px;

    border-radius:24px;

    box-shadow:0 8px 24px rgba(0,0,0,0.06);

    transition:0.35s ease;
}

.event-card:hover{
    transform:translateX(6px);
}

.event-date{
    min-width:90px;

    height:90px;

    border-radius:18px;

    background:#14532d;

    color:white;

    display:flex;

    flex-direction:column;

    justify-content:center;
    align-items:center;

    font-weight:700;
}

.event-date span{
    font-size:1.7rem;
}

/* =========================================
   COLLABORATIONS
========================================= */

.collab-grid{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:30px;
}

.collab-card{
    background:white;

    padding:28px;

    border-radius:24px;

    box-shadow:0 8px 24px rgba(0,0,0,0.06);

    transition:0.35s ease;
}

.collab-card:hover{
    transform:translateY(-6px);
}

.collab-logo{
    height:120px;

    background:#e2e8f0;

    border-radius:16px;

    display:flex;

    justify-content:center;
    align-items:center;

    color:#64748b;

    margin-bottom:20px;
}

.collab-card p{
    text-align:justify;

    line-height:1.85;
}

/* =========================================
   FACILITIES
========================================= */

.facility-grid{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(300px,1fr));

    gap:30px;
}

.facility-card{
    background:white;

    padding:24px;

    border-radius:24px;

    box-shadow:0 8px 24px rgba(0,0,0,0.06);

    transition:0.35s ease;
}

.facility-card:hover{
    transform:translateY(-6px);
}

.facility-placeholder{
    height:220px;

    background:#e2e8f0;

    border-radius:18px;

    display:flex;

    justify-content:center;
    align-items:center;

    color:#64748b;

    margin-bottom:18px;
}

.facility-card p{
    text-align:justify;

    line-height:1.85;
}

/* =========================================
   PUBLICATIONS + PROJECTS COMPACT SECTION
========================================= */

.publication-list{

    display:flex;

    flex-direction:column;

    gap:6px;

    margin-top:4px;

    padding:0;
}

.publication-item{

    background:white;

    padding:10px 14px;

    border-radius:12px;

    box-shadow:0 2px 8px rgba(0,0,0,0.035);

    transition:0.2s ease;

    margin:0;
}

.publication-item:hover{

    transform:translateY(-2px);

    box-shadow:0 6px 14px rgba(0,0,0,0.06);
}

.publication-item h3{

    margin:0 0 2px 0;

    color:#14532d;

    line-height:1.18;

    font-size:0.96rem;

    font-weight:700;
}

.publication-item p{

    color:#475569;

    line-height:1.22;

    text-align:left;

    margin:0;

    font-size:0.88rem;
}

/* =========================================
   PAGE CONTAINER
========================================= */

.container{

    max-width:1180px;

    margin:auto;

    padding:24px 22px;
}

/* =========================================
   SECTION TITLES
========================================= */

.section-title{

    text-align:center;

    font-size:2rem;

    margin-bottom:12px;

    color:#14532d;

    line-height:1.2;
}

/* =========================================
   PAGE HEADER
========================================= */

.page-header{

    padding:105px 20px 18px;

    text-align:center;

    background:#f8fafc;
}

.page-header h1{

    font-size:3rem;

    color:#0f172a;

    margin:0;
}

/* =========================================
   FOOTER
========================================= */

footer{
    background:#f8fafc;

    text-align:center;

    padding:35px;

    margin-top:50px;

    color:#64748b;
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes fade{

    0%{
        opacity:0;
    }

    8%{
        opacity:1;
    }

    30%{
        opacity:1;
    }

    38%{
        opacity:0;
    }

    100%{
        opacity:0;
    }
}

@keyframes fadeUp{

    from{
        opacity:0;

        transform:translateY(40px);
    }

    to{
        opacity:1;

        transform:translateY(0);
    }
}

/* =========================================
   MOBILE
========================================= */

@media(max-width:768px){

    header{
        flex-direction:column;
    }

    nav{
        margin-top:12px;

        flex-wrap:wrap;

        justify-content:center;
    }

    nav a{
        margin:8px 10px;
    }

    .hero-content h1{
        font-size:2.7rem;
    }

    .page-header h1{
        font-size:2.3rem;
    }

    .section-title{
        font-size:1.9rem;
    }

    .member-card{
        width:100%;
        max-width:320px;
    }

    .member-card img{
        width:100%;
        height:auto;

        aspect-ratio:1/1;
    }

    .event-card{
        flex-direction:column;

        align-items:flex-start;
    }

    .gallery-row{
        justify-content:center;
    }

    .gallery-row img{
        width:100%;
        max-width:360px;
    }
}

/* =========================================
   PUBLICATIONS PAGE
========================================= */

.publication-list{

    max-height:900px;

    overflow-y:auto;

    display:flex;

    flex-direction:column;

    gap:24px;

    padding-right:10px;
}

.publication-list::-webkit-scrollbar{
    width:8px;
}

.publication-list::-webkit-scrollbar-track{
    background:#f1f5f9;

    border-radius:10px;
}

.publication-list::-webkit-scrollbar-thumb{
    background:#14532d;

    border-radius:10px;
}

.publication-item{

    background:white;

    padding:28px;

    border-radius:22px;

    box-shadow:0 8px 24px rgba(0,0,0,0.06);

    transition:0.35s ease;
}

.publication-item:hover{

    transform:translateY(-5px);

    box-shadow:0 14px 30px rgba(0,0,0,0.1);
}

.publication-item h3{

    margin-bottom:14px;

    color:#14532d;

    line-height:1.5;

    font-size:1.08rem;
}

.publication-item p{

    color:#475569;

    line-height:1.85;

    text-align:justify;
}