/* ===========================
   AWRL – Agarwood Research Lab
   Main Stylesheet
   =========================== */

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

:root {
  --green-dark:   #1b5e20;
  --green:        #2e7d32;
  --green-mid:    #388e3c;
  --green-light:  #66bb6a;
  --green-pale:   #e8f5e9;
  --gold:         #c8922a;
  --gold-light:   #f9d57a;
  --white:        #ffffff;
  --off-white:    #f8faf8;
  --light-gray:   #f2f4f2;
  --mid-gray:     #9e9e9e;
  --dark:         #1a1a1a;
  --text:         #333333;
  --text-light:   #555555;
  --radius:       10px;
  --radius-lg:    18px;
  --shadow:       0 4px 24px rgba(0,0,0,0.09);
  --shadow-hover: 0 8px 36px rgba(0,0,0,0.16);
  --transition:   all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; line-height: 1.3; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

a { color: var(--green); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-dark); }

img { max-width: 100%; display: block; }

ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }
.bg-light { background: var(--light-gray); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header p { max-width: 640px; margin: 14px auto 0; color: var(--text-light); }

.section-label {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46,125,50,0.3); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--green); }
.btn-outline-dark { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline-dark:hover { background: var(--green); color: #fff; }
.btn-white { background: #fff; color: var(--green-dark); font-weight: 700; }
.btn-white:hover { background: var(--green-pale); color: var(--green-dark); }
.btn-full { width: 100%; justify-content: center; }

.btn-small {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  border: 1.5px solid var(--green);
  padding: 5px 14px;
  border-radius: 4px;
  transition: var(--transition);
}
.btn-small:hover { background: var(--green); color: #fff; }

.center-btn { text-align: center; margin-top: 48px; }

/* ---- TOP BAR ---- */
.topbar {
  background: var(--green-dark);
  color: #c8e6c9;
  font-size: 0.8rem;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.topbar-inner span { display: flex; align-items: center; gap: 6px; }
.topbar-inner .fa { font-size: 0.75rem; }
.topbar-social { margin-left: auto; display: flex; gap: 12px; }
.topbar-social a { color: #c8e6c9; font-size: 0.8rem; }
.topbar-social a:hover { color: var(--gold-light); }

/* ---- HEADER ---- */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  gap: 24px;
}

.logo-area { display: flex; align-items: center; }
.logo-icon { display: flex; align-items: center; gap: 12px; }
.logo-icon img { height: 54px; width: auto; }
.logo-text-block { display: flex; flex-direction: column; }
.logo-en { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--green-dark); line-height: 1.2; }
.logo-bn { font-size: 0.78rem; color: var(--green); }
.logo-sub { font-size: 0.72rem; color: var(--text-light); }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: var(--transition);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  background: var(--green-pale);
  color: var(--green-dark);
}
.main-nav > ul > li > a .fa { font-size: 0.65rem; margin-left: 3px; }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  min-width: 220px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 8px 0;
  z-index: 200;
}
.has-dropdown:hover .dropdown { display: block; animation: fadeDown 0.2s ease; }
.dropdown li a { display: block; padding: 9px 18px; font-size: 0.875rem; color: var(--text); }
.dropdown li a:hover { background: var(--green-pale); color: var(--green-dark); }

@keyframes fadeDown { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--green-dark); border-radius: 2px; transition: var(--transition); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0a2e0d 0%, #1b5e20 40%, #2e7d32 70%, #1a3a1c 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(200,220,150,0.05) 0%, transparent 50%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 780px;
  padding: 60px 24px;
}
.hero-tagline {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-content h1 { color: #fff; margin-bottom: 16px; }
.hero-content h1 span { color: var(--gold-light); }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.75); margin-bottom: 36px; font-style: italic; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ---- STATS STRIP ---- */
.stats-strip { background: var(--green); padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-card {
  text-align: center;
  padding: 32px 20px;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,0.15);
  transition: var(--transition);
}
.stat-card:last-child { border-right: none; }
.stat-card:hover { background: rgba(255,255,255,0.08); }
.stat-card .fa { font-size: 1.6rem; margin-bottom: 10px; color: var(--gold-light); }
.stat-card h3 { font-size: 2rem; color: #fff; margin-bottom: 4px; }
.stat-card p { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

/* ---- ABOUT SECTION ---- */
.about-grid, .project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text { }
.about-text h2 { margin: 12px 0 16px; }
.about-text p { color: var(--text-light); margin-bottom: 14px; }
.about-list { margin: 24px 0; }
.about-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; color: var(--text-light); }
.about-list .fa { color: var(--green); margin-top: 3px; flex-shrink: 0; }

/* ---- IMAGE PLACEHOLDERS ---- */
.img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.forest-bg   { background: linear-gradient(135deg, #1b5e20, #2e7d32, #388e3c); }
.agarwood-bg { background: linear-gradient(135deg, #3e2723, #5d4037, #4e342e); }
.lab-bg      { background: linear-gradient(135deg, #1a237e, #283593, #303f9f); }
.inoc-bg     { background: linear-gradient(135deg, #1b5e20, #558b2f, #33691e); }
.cult-bg     { background: linear-gradient(135deg, #004d40, #00695c, #00796b); }
.qual-bg     { background: linear-gradient(135deg, #0d47a1, #1565c0, #1976d2); }

.img-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 20 Q60 5 70 20 Q80 5 90 20 L90 80 Q80 65 70 80 Q60 65 50 80 Q40 65 30 80 Q20 65 10 80 L10 20 Q20 5 30 20 Q40 5 50 20Z' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") center/cover;
}

.img-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

/* ---- RESEARCH CARDS ---- */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.research-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.research-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.research-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}
.research-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.research-card p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 16px; }
.card-link { font-size: 0.875rem; font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover { gap: 10px; }

/* ---- PROJECT HIGHLIGHT ---- */
.project-highlight { background: linear-gradient(135deg, #0a2e0d, #1b5e20); }
.project-text, .project-img { }
.project-text h2 { color: #fff; margin: 12px 0 16px; }
.project-text .section-label { background: rgba(255,255,255,0.15); color: var(--gold-light); }
.project-text p { color: rgba(255,255,255,0.8); margin-bottom: 24px; }
.project-timeline { margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.tl-item { display: flex; align-items: flex-start; gap: 14px; color: rgba(255,255,255,0.85); }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold-light); flex-shrink: 0; margin-top: 6px; }

/* ---- NEWS ---- */
.news-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.news-img { height: 200px; }
.news-bg1 { background: linear-gradient(135deg, #1b5e20, #2e7d32); }
.news-bg2 { background: linear-gradient(135deg, #004d40, #00695c); }
.news-bg3 { background: linear-gradient(135deg, #1a237e, #283593); }
.news-body { padding: 20px; }
.news-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.news-body h3 { font-size: 1rem; margin-bottom: 8px; }
.news-body h3 a { color: var(--dark); }
.news-body h3 a:hover { color: var(--green); }
.news-body p { font-size: 0.875rem; color: var(--text-light); margin-bottom: 12px; }
.news-meta { font-size: 0.78rem; color: var(--mid-gray); }

/* ---- PARTNERS ---- */
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.partner-card { text-align: center; padding: 28px 16px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.partner-logo { width: 60px; height: 60px; background: var(--green-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 1.4rem; color: var(--green-dark); }
.partner-card p { font-size: 0.85rem; color: var(--text-light); }

/* ---- CTA ---- */
.cta-section { background: linear-gradient(135deg, var(--green-dark), var(--green)); padding: 80px 0; text-align: center; }
.cta-inner h2 { color: #fff; margin-bottom: 16px; }
.cta-inner p { color: rgba(255,255,255,0.82); max-width: 540px; margin: 0 auto 32px; }

/* ---- FOOTER ---- */
.site-footer { background: #0d1f0e; color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 48px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; font-family: 'Inter', sans-serif; font-weight: 600; }
.footer-col p { font-size: 0.875rem; line-height: 1.8; margin-bottom: 8px; }
.footer-col p .fa { margin-right: 8px; color: var(--green-light); }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.875rem; display: flex; align-items: center; gap: 6px; }
.footer-col ul li a::before { content: '›'; color: var(--green-light); }
.footer-col ul li a:hover { color: var(--green-light); padding-left: 4px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-social a:hover { background: var(--green); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ---- PAGE BANNER ---- */
.page-banner {
  position: relative;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #0a2e0d, #1b5e20, #2e7d32);
  overflow: hidden;
}
.banner-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.25); }
.banner-content { position: relative; z-index: 2; }
.banner-content h1 { color: #fff; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.7); font-size: 0.875rem; margin-top: 10px; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .fa { font-size: 0.6rem; }

/* ---- ABOUT PAGE ---- */
.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mv-card { background: var(--white); border-radius: var(--radius); padding: 36px 28px; text-align: center; box-shadow: var(--shadow); }
.mv-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--green-pale); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.4rem; color: var(--green-dark); }
.mv-card h3 { margin-bottom: 12px; color: var(--green-dark); }
.mv-card p { color: var(--text-light); font-size: 0.9rem; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { background: var(--white); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.team-card:hover { transform: translateY(-4px); }
.team-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--green-dark)); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.6rem; color: rgba(255,255,255,0.9); }
.team-card h4 { margin-bottom: 4px; }
.team-role { font-size: 0.85rem; color: var(--green); font-weight: 500; }
.team-dept { font-size: 0.8rem; color: var(--mid-gray); margin-top: 4px; }

.facilities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facility-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: var(--transition); }
.facility-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.facility-card > .fa { font-size: 1.8rem; color: var(--green); margin-bottom: 14px; }
.facility-card h4 { margin-bottom: 8px; }
.facility-card p { font-size: 0.875rem; color: var(--text-light); }

/* ---- RESEARCH PAGE ---- */
.research-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.research-detail-grid.reverse { direction: rtl; }
.research-detail-grid.reverse > * { direction: ltr; }
.rd-text h2 { margin: 12px 0 16px; }
.rd-text h4 { margin: 20px 0 12px; color: var(--green-dark); }
.research-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.research-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text-light); }
.research-list .fa { color: var(--green); margin-top: 3px; flex-shrink: 0; }
.research-outcome { background: var(--green-pale); border-left: 4px solid var(--green); padding: 14px 18px; border-radius: 0 6px 6px 0; font-size: 0.9rem; color: var(--text-light); }

.rd-img { position: relative; }
.rd-icon-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  z-index: 2;
}

.pub-list { display: flex; flex-direction: column; gap: 0; }
.pub-item { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid #e8f0e8; }
.pub-year { font-size: 1.1rem; font-weight: 800; color: var(--green); min-width: 50px; padding-top: 2px; }
.pub-body h4 { margin-bottom: 6px; font-size: 1rem; }
.pub-body p { color: var(--text-light); font-size: 0.875rem; margin-bottom: 10px; }

/* ---- PROJECT PAGE ---- */
.project-title-card {
  background: linear-gradient(135deg, #0a2e0d, #1b5e20);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
  text-align: center;
}
.ptc-bn { font-size: 1.1rem; color: var(--gold-light); margin-bottom: 16px; font-style: italic; }
.project-title-card h2 { color: #fff; font-size: 2rem; margin-bottom: 8px; }
.ptc-sub { color: rgba(255,255,255,0.7); font-style: italic; margin-bottom: 36px; }
.ptc-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.15); }
.ptc-meta-item { text-align: center; }
.ptc-meta-item .fa { font-size: 1.4rem; color: var(--gold-light); margin-bottom: 8px; display: block; }
.ptc-meta-item span { font-size: 0.78rem; color: rgba(255,255,255,0.6); display: block; }
.ptc-meta-item strong { color: #fff; font-size: 0.9rem; }

.obj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.obj-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: var(--transition); }
.obj-card:hover { transform: translateY(-4px); }
.obj-num { font-size: 2.5rem; font-weight: 800; color: var(--green-pale); line-height: 1; margin-bottom: 12px; font-family: 'Inter', sans-serif; }
.obj-card h4 { color: var(--green-dark); margin-bottom: 10px; }
.obj-card p { font-size: 0.875rem; color: var(--text-light); }

/* Timeline */
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--green-pale); transform: translateX(-50%); }
.timeline-item { display: flex; justify-content: flex-end; padding-right: calc(50% + 32px); margin-bottom: 40px; position: relative; }
.timeline-item.right { justify-content: flex-start; padding-right: 0; padding-left: calc(50% + 32px); }
.timeline-item::after { content: ''; position: absolute; left: 50%; top: 20px; width: 14px; height: 14px; background: var(--green); border-radius: 50%; transform: translateX(-50%); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--green-pale); }
.tl-content { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); max-width: 360px; }
.tl-year { font-size: 1.1rem; font-weight: 800; color: var(--green); margin-bottom: 6px; }
.tl-content h4 { margin-bottom: 8px; }
.tl-content p { font-size: 0.875rem; color: var(--text-light); }

/* Progress */
.progress-grid { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.progress-item { }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9rem; font-weight: 500; }
.progress-bar { height: 10px; background: #c8e6c9; border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--green-light)); border-radius: 10px; animation: fillBar 1.5s ease-out; }
@keyframes fillBar { from { width: 0 !important; } }

/* ---- GALLERY PAGE ---- */
.gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn { padding: 8px 20px; border: 2px solid var(--green); border-radius: 24px; background: transparent; color: var(--green); font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.filter-btn.active, .filter-btn:hover { background: var(--green); color: #fff; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; aspect-ratio: 1; }
.gallery-img { width: 100%; height: 100%; transition: transform 0.4s ease; }
.gallery-item:hover .gallery-img { transform: scale(1.05); }

.gal-forest1  { background: linear-gradient(135deg, #1b5e20, #2e7d32); }
.gal-forest2  { background: linear-gradient(135deg, #33691e, #558b2f); }
.gal-forest3  { background: linear-gradient(135deg, #004d40, #00695c); }
.gal-lab1     { background: linear-gradient(135deg, #1a237e, #283593); }
.gal-lab2     { background: linear-gradient(135deg, #0d47a1, #1565c0); }
.gal-lab3     { background: linear-gradient(135deg, #4a148c, #6a1b9a); }
.gal-field1   { background: linear-gradient(135deg, #e65100, #f57c00); }
.gal-field2   { background: linear-gradient(135deg, #bf360c, #e64a19); }
.gal-field3   { background: linear-gradient(135deg, #827717, #f9a825); }
.gal-training1 { background: linear-gradient(135deg, #880e4f, #ad1457); }
.gal-training2 { background: linear-gradient(135deg, #37474f, #546e7a); }
.gal-training3 { background: linear-gradient(135deg, #4e342e, #6d4c41); }

.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
  gap: 8px;
}
.gallery-item:hover .gallery-overlay { background: rgba(0,0,0,0.5); }
.gallery-overlay .fa { font-size: 1.5rem; opacity: 0; transform: scale(0.7); transition: var(--transition); }
.gallery-overlay span { font-size: 0.85rem; font-weight: 600; opacity: 0; transform: translateY(6px); transition: var(--transition); }
.gallery-item:hover .gallery-overlay .fa,
.gallery-item:hover .gallery-overlay span { opacity: 1; transform: scale(1) translateY(0); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lb-content { max-width: 800px; width: 90vw; text-align: center; }
.lb-img { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); margin-bottom: 14px; }
.lb-content p { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.lb-close { position: fixed; top: 20px; right: 24px; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; z-index: 10000; }
.lb-prev, .lb-next { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 1.2rem; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-prev:hover, .lb-next:hover { background: var(--green); }

/* ---- NEWS PAGE ---- */
.events-list { display: flex; flex-direction: column; gap: 24px; }
.event-card { display: flex; gap: 24px; background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.event-card.upcoming { border-left: 4px solid var(--green); }
.event-date-box { min-width: 80px; text-align: center; background: var(--green); color: #fff; border-radius: 10px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ev-day { font-size: 2rem; font-weight: 800; line-height: 1; }
.ev-month { font-size: 0.8rem; text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em; }
.ev-year { font-size: 0.72rem; color: rgba(255,255,255,0.7); margin-top: 4px; }
.event-details h4 { margin: 8px 0; }
.event-details p { color: var(--text-light); font-size: 0.875rem; margin-bottom: 6px; }

.news-grid-full { display: flex; flex-direction: column; gap: 0; }
.news-card-full { padding: 28px 0; border-bottom: 1px solid #e8f0e8; }
.ncf-date { font-size: 0.82rem; color: var(--mid-gray); margin-bottom: 8px; }
.news-card-full h3 { margin: 8px 0 12px; font-size: 1.2rem; }
.news-card-full p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }

/* ---- CONTACT PAGE ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-info h2 { margin: 12px 0 16px; }
.contact-info > p { color: var(--text-light); margin-bottom: 28px; }
.contact-card { display: flex; gap: 16px; margin-bottom: 20px; }
.cc-icon { width: 46px; height: 46px; background: var(--green-pale); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--green-dark); font-size: 1rem; flex-shrink: 0; }
.contact-card h4 { margin-bottom: 4px; font-size: 0.95rem; }
.contact-card p { font-size: 0.875rem; color: var(--text-light); }

.contact-social { margin-top: 28px; }
.contact-social h4 { margin-bottom: 12px; }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: var(--green-pale); display: flex; align-items: center; justify-content: center; color: var(--green-dark); transition: var(--transition); }
.social-links a:hover { background: var(--green); color: #fff; }

.contact-form-wrap { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.contact-form-wrap h3 { margin-bottom: 24px; color: var(--green-dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #dde6dd;
  border-radius: 7px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  transition: var(--transition);
  background: #fafcfa;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(46,125,50,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 500;
}
.form-success .fa { font-size: 1.2rem; }

/* Map */
.map-section { height: 380px; position: relative; overflow: hidden; }
.map-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #c8e6c9, #e8f5e9); position: relative; display: flex; align-items: center; justify-content: center; }
.map-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(46,125,50,0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(46,125,50,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-overlay-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 36px;
  text-align: center;
  box-shadow: var(--shadow-hover);
  z-index: 2;
  position: relative;
}
.map-overlay-card .fa { font-size: 2rem; color: var(--green); margin-bottom: 10px; }
.map-overlay-card h4 { margin-bottom: 6px; }
.map-overlay-card p { color: var(--text-light); font-size: 0.875rem; margin-bottom: 16px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.featured { grid-column: span 2; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .topbar { display: none; }

  .hamburger { display: flex; }
  .main-nav {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(300px, 85vw);
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    padding: 80px 24px 24px;
    overflow-y: auto;
    z-index: 999;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li > a { padding: 14px 0; border-bottom: 1px solid #f0f0f0; border-radius: 0; }
  .dropdown { display: block; position: static; box-shadow: none; padding: 0 0 0 16px; margin-bottom: 8px; }
  .has-dropdown:hover .dropdown { display: block; }

  .about-grid, .project-grid, .research-detail-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .research-detail-grid.reverse { direction: ltr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .research-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .facilities-grid { grid-template-columns: 1fr 1fr; }
  .obj-grid { grid-template-columns: 1fr; }
  .ptc-meta { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.featured { grid-column: auto; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item.right { padding: 0 0 0 52px; justify-content: flex-start; }
  .timeline-item::after { left: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero { min-height: 75vh; }
  .project-title-card { padding: 28px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .facilities-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .ptc-meta { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr 1fr; }
}
