/**
 * Poriborton Kalyan Foundation - Complete Stylesheet
 * Professional, SEO-optimized, mobile-responsive design
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cormorant+Garamond:wght@300;400;600;700&family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --green-deep: #0a5c36;
  --green-mid: #0d7344;
  --green-light: #1a9a5e;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-pale: #f5ead0;
  --cream: #faf7f0;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-mid: #3d3d3d;
  --text-muted: #6b6b6b;
  --shadow-sm: 0 2px 12px rgba(10,92,54,0.10);
  --shadow-md: 0 8px 32px rgba(10,92,54,0.14);
  --shadow-lg: 0 20px 60px rgba(10,92,54,0.18);
  --font-primary: 'Hind Siliguri', sans-serif;
  --font-arabic: 'Amiri', serif;
  --font-heading: 'Cormorant Garamond', serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); background: var(--cream); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }

/* Geometric Pattern */
.geo-pattern {
  background-image: radial-gradient(circle at 20% 50%, rgba(201,168,76,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(10,92,54,0.06) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='%230a5c36' fill-opacity='0.04'/%3E%3C/svg%3E");
}

/* Header */
header {
  background: linear-gradient(135deg, #062e1c 0%, var(--green-deep) 60%, #0d6e41 100%);
  color: white;
  padding: 28px 20px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
header h1 { font-family: var(--font-heading); font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 600; letter-spacing: 0.02em; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
header p { font-family: var(--font-heading); font-size: clamp(0.85rem, 2.5vw, 1.05rem); color: var(--gold-light); margin-top: 8px; font-style: italic; }

/* Navigation */
nav { background: #052a19; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(201,168,76,0.25); box-shadow: 0 2px 16px rgba(0,0,0,0.25); }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.nav-main { display: flex; list-style: none; }
.nav-main > li { position: relative; }
.nav-main > li > a, .nav-main > li > button {
  color: rgba(255,255,255,0.85);
  padding: 14px 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  transition: all 0.25s;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.nav-main > li > a:hover, .nav-main > li > button:hover, .nav-main > li > a.active { color: var(--gold-light); background: rgba(201,168,76,0.07); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #062e1c;
  min-width: 280px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  border-top: 2px solid var(--gold);
}
.nav-main > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  color: rgba(255,255,255,0.85);
  padding: 12px 20px;
  display: block;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.25s;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.dropdown a:hover { background: rgba(201,168,76,0.15); color: var(--gold-light); padding-left: 28px; }

/* Nav Utilities */
.nav-utilities { display: flex; gap: 8px; align-items: center; }
.lang-switcher { display: flex; background: rgba(255,255,255,0.08); border-radius: 6px; overflow: hidden; }
.lang-switcher button {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.lang-switcher button.active { background: var(--gold); color: white; }
.search-toggle { background: transparent; border: none; color: rgba(255,255,255,0.85); padding: 8px 12px; cursor: pointer; font-size: 1.1rem; }
.mobile-menu-toggle { display: none; background: transparent; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: 8px; }

/* Search Bar */
.search-bar {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #041f14;
  padding: 20px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  border-top: 2px solid var(--gold);
}
.search-bar.active { opacity: 1; visibility: visible; transform: translateY(0); }
.search-container { max-width: 600px; margin: 0 auto; position: relative; }
.search-container input {
  width: 100%;
  padding: 12px 45px 12px 16px;
  border: 2px solid rgba(201,168,76,0.3);
  border-radius: 8px;
  background: rgba(255,255,255,0.95);
  font-size: 0.95rem;
  font-family: inherit;
}
.search-container input:focus { outline: none; border-color: var(--gold); }
.search-container button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gold);
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

/* Breadcrumb */
.breadcrumb { background: rgba(10,92,54,0.05); padding: 12px 20px; border-bottom: 1px solid rgba(10,92,54,0.1); }
.breadcrumb-container { max-width: 1200px; margin: 0 auto; display: flex; gap: 8px; font-size: 0.85rem; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--green-deep); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--green-deep), var(--green-mid)); color: white; box-shadow: 0 4px 18px rgba(10,92,54,0.30); }
.btn-primary:hover { box-shadow: 0 8px 26px rgba(10,92,54,0.40); }
.btn-gold { background: linear-gradient(135deg, #b8932a, var(--gold)); color: white; box-shadow: 0 4px 18px rgba(201,168,76,0.30); }
.btn-gold:hover { box-shadow: 0 8px 26px rgba(201,168,76,0.40); }
.btn-outline { background: transparent; color: var(--green-deep); border: 2px solid var(--green-deep); }
.btn-outline:hover { background: var(--green-deep); color: white; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding: 64px 20px; }
.section-alt { background: white; }
.section-green { background: linear-gradient(135deg, #062e1c, var(--green-deep)); color: white; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 44px; }
.section-header .label { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: block; }
.section-header h2 { font-family: var(--font-heading); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; color: var(--green-deep); line-height: 1.2; }
.section-green .section-header h2 { color: var(--gold-light); }
.section-header .underline { display: inline-block; width: 60px; height: 3px; background: var(--gold); border-radius: 2px; margin-top: 14px; }

/* Cards */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.feature-card {
  background: white;
  border: 1px solid rgba(10,92,54,0.08);
  border-radius: 14px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.section-alt .feature-card { background: var(--cream); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 2.2rem; margin-bottom: 14px; display: block; }
.feature-card h3 { font-family: var(--font-heading); font-size: 1.15rem; color: var(--green-deep); margin-bottom: 10px; font-weight: 700; }
.feature-card p { font-size: 0.875rem; color: var(--text-mid); line-height: 1.7; }

/* Accordion */
.accordion { max-width: 900px; margin: 0 auto; }
.accordion-item {
  background: white;
  border: 1px solid rgba(10,92,54,0.1);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.accordion-item:hover { box-shadow: var(--shadow-sm); }
.accordion-header {
  width: 100%;
  padding: 18px 24px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-deep);
  transition: background 0.2s;
}
.accordion-header:hover { background: rgba(10,92,54,0.03); }
.accordion-header.active { background: rgba(10,92,54,0.05); }
.accordion-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.accordion-title { flex: 1; line-height: 1.5; }
.accordion-icon { flex-shrink: 0; font-size: 1.2rem; color: var(--gold); transition: transform 0.3s; }
.accordion-header.active .accordion-icon { transform: rotate(180deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.accordion-content-inner { padding: 0 24px 24px 80px; color: var(--text-mid); line-height: 1.8; font-size: 0.95rem; }

/* Map Styles */
#map { height: 600px; width: 100%; border-radius: 12px; box-shadow: var(--shadow-md); margin-bottom: 30px; }
.map-tabs { display: flex; gap: 12px; margin-bottom: 20px; justify-content: center; flex-wrap: wrap; }
.map-tab { padding: 12px 24px; background: white; border: 2px solid var(--green-deep); border-radius: 6px; cursor: pointer; font-weight: 600; transition: all 0.2s; color: var(--green-deep); }
.map-tab.active { background: var(--green-deep); color: white; }
.map-tab:hover { background: var(--green-light); color: white; border-color: var(--green-light); }

/* Counter Strip */
.counter-strip {
  background: linear-gradient(90deg, #062e1c, var(--green-deep), #062e1c);
  padding: 18px 20px;
  text-align: center;
  border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.counter-strip p {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.counter-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--gold-light);
  font-weight: 700;
  line-height: 1;
}

/* Footer */
footer { background: #052a19; color: rgba(255,255,255,0.65); padding: 40px 20px 20px; border-top: 2px solid rgba(201,168,76,0.2); }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 30px; }
.footer-section h3 { color: var(--gold-light); font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 16px; }
.footer-section p, .footer-section a { color: rgba(255,255,255,0.7); text-decoration: none; line-height: 1.8; font-size: 0.9rem; }
.footer-section a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  font-size: 1.1rem;
  text-decoration: none;
}
.footer-social a:hover { background: var(--gold); transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }

/* Share Buttons */
.share-buttons { display: flex; gap: 10px; justify-content: center; }
.share-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  transition: all 0.2s;
  text-decoration: none;
}
.share-button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #0088cc; }
.share-email { background: #6b6b6b; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; transform: translateY(24px); transition: all 0.6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Book Cover */
.book-cover-wrap { position: relative; max-width: 280px; margin: 0 auto; }
.book-cover-wrap img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s;
}
.book-cover-wrap:hover img { transform: scale(1.03) rotate(-1deg); }

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }
  .nav-main { display: none; width: 100%; flex-direction: column; margin-top: 10px; }
  .nav-main.active { display: flex; }
  .nav-main > li { width: 100%; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; display: none; background: #041f14; }
  .dropdown.active { display: block; }
  .nav-utilities { order: -1; }
  .section { padding: 48px 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .accordion-content-inner { padding-left: 24px; }
  .footer-content { grid-template-columns: 1fr; gap: 30px; }
  #map { height: 400px; }
}

/* Print Styles */
@media print {
  nav, .search-bar, .share-buttons, .breadcrumb, footer, .btn, .mobile-menu-toggle { display: none !important; }
  body { background: white; }
  .section { page-break-inside: avoid; }
  a[href]:after { content: " (" attr(href) ")"; }
}
