/* assets/css/style.css */
:root {
  --primary-green: #2D7A3E;
  --primary-dark: #1e5229;
  --navy-blue: #0A2342;
  --silver: #E8E8E8;
  --white: #FFFFFF;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #F4F7F6;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--navy-blue);
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-wrap: break-word;
}

/* Header & Nav */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy-blue);
  display: flex;
  align-items: center;
}

.logo::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  background: url('../images/animated-logo.svg') no-repeat center center;
  background-size: contain;
}

.logo span {
  color: var(--primary-green);
  margin-left: 6px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links > li > a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--white);
  color: var(--navy-blue);
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 4px 0 rgba(0,0,0,0.15), 0 5px 4px rgba(0,0,0,0.1);
  transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out, background-color 0.1s ease, color 0.1s ease;
  position: relative;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.nav-links > li > a:hover, .nav-links > li > a.active {
  background: var(--silver);
  color: var(--primary-green);
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0,0,0,0.15), 0 3px 3px rgba(0,0,0,0.1);
}

.nav-links > li > a:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.1);
  background-color: #f39c12 !important;
  color: white !important;
}

.nav-links .dropdown-menu a {
  color: var(--text-dark);
  font-weight: 500;
  display: block;
  transition: background-color 0.2s, color 0.2s;
}

.nav-links .dropdown-menu a:hover {
  background-color: var(--silver);
  color: var(--primary-green);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary-green);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(0,0,0,0.25), 0 6px 5px rgba(0,0,0,0.15);
  transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out, background-color 0.3s ease;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(2px);
  box-shadow: 0 3px 0 rgba(0,0,0,0.25), 0 4px 4px rgba(0,0,0,0.15);
}

.btn:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.15);
  background-color: #f39c12 !important; /* Golden/Orange for pressed state */
  color: white !important;
}

/* Dropdown */
.dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  min-width: 200px;
  list-style: none;
  z-index: 1000;
  border-radius: 4px;
}
.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu li {
  border-bottom: 1px solid var(--silver);
}
.dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(10, 35, 66, 0.8), rgba(10, 35, 66, 0.8)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=50&w=1200') center/cover;
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Sections */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--primary-green);
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 30px;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 20px;
}

/* Trust Bar */
.trust-bar {
  background: var(--navy-blue);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}
.trust-logos {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.trust-logos div {
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--silver);
}

/* Footer */
footer {
  background: var(--navy-blue);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--white);
  border-bottom: 2px solid var(--primary-green);
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--silver);
}

.footer-col a:hover {
  color: var(--primary-green);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--silver);
  font-size: 0.9rem;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #FFF;
}

/* Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fast Fade for Titles */
.anim-fast-fade {
  opacity: 0;
  transform: translateY(-10px);
}
.anim-fast-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: fastFade 0.6s ease-out forwards;
}

@keyframes fastFade {
  0% { opacity: 0; filter: blur(4px); transform: translateY(-10px); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* Fast Typing for Text */
.anim-fast-type {
  opacity: 0;
}
.anim-fast-type.is-visible {
  opacity: 1;
  animation: typeWipe 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes typeWipe {
  0% { 
    clip-path: inset(0 100% 0 0); 
    -webkit-clip-path: inset(0 100% 0 0); 
    opacity: 0; 
  }
  1% { opacity: 1; }
  100% { 
    clip-path: inset(0 0 0 0); 
    -webkit-clip-path: inset(0 0 0 0); 
    opacity: 1; 
  }
}

/* Page transitions progress */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--primary-green);
  z-index: 9999;
  width: 0%;
  transition: width 0.2s ease;
}

/* RTL Support for Urdu */
body[dir="rtl"] {
  font-family: 'Jameel Noori Nastaleeq', 'Nafees', sans-serif; /* Standard Urdu fonts */
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy-blue);
}

@media (max-width: 768px) {
  .logo {
    font-size: 1.1rem;
    white-space: normal;
    flex-wrap: wrap;
  }
  .nav-container {
    padding: 10px 15px;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow);
  }
  .nav-links.show {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 20px;
    display: block;
  }
  .hero {
    padding: 60px 20px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section {
    padding: 40px 0;
  }
  .grid-3 > div, 
  .grid-3 > article, 
  .grid-3 > aside {
    grid-column: span 1 !important;
    text-align: center;
  }
  .grid-3 ul, .grid-3 ol {
    text-align: left;
    display: inline-block;
    max-width: 100%;
  }
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
  .section-title h2 {
    font-size: 2rem;
  }
}

/* General Text Safety */
p, h1, h2, h3, li, a {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Map Section */
.map-section {
  margin-top: 40px;
  border-radius: 10px;
  overflow: hidden;
  grid-column: 1 / -1;
  width: 100%;
}

/* Facebook Link Section Fix */
.fb-link-section {
  padding: 20px 0;
  text-align: center;
  background-color: var(--bg-light);
  border-top: 1px solid var(--silver);
}
.fb-link-section a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #1877F2;
  font-weight: 600;
  font-size: 1.1rem;
  word-break: break-word;
}

@media (max-width: 480px) {
  .fb-link-section a {
    font-size: 0.9rem;
    word-break: break-all;
  }
}

/* Subscription Form */
.subscribe-form {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
  background: var(--white);
  padding: 5px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.subscribe-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
}
.subscribe-form .subscribe-btn {
  margin-left: 5px;
  background: var(--navy-blue);
}
.subscribe-form .subscribe-btn:hover {
  background: #0d3058;
}
@media (max-width: 480px) {
  .subscribe-form {
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  .subscribe-form input {
    width: 100%;
    margin-bottom: 10px;
    background: var(--white);
    border-radius: 5px;
  }
  .subscribe-form .subscribe-btn {
    width: 100%;
    margin-left: 0;
  }
}

/* --- Rainbow Effects --- */
@keyframes rainbow-text {
  0% { color: #ff0000; }
  14% { color: #ff7f00; }
  28% { color: #e5cf00; } /* slightly darker yellow for readability */
  42% { color: #00b300; } /* darker green */
  57% { color: #0000ff; }
  71% { color: #4b0082; }
  85% { color: #9400d3; }
  100% { color: #ff0000; }
}

@keyframes rainbow-bg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes rainbow-hue {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Apply Rainbow to Logo Text */
.logo {
  background: linear-gradient(270deg, #ff0000, #ff7f00, #e6b800, #00b300, #0000ff, #4b0082, #9400d3, #ff0000);
  background-size: 800% 800%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-bg 8s ease infinite;
  display: flex;
  align-items: center;
}
.logo span {
  -webkit-text-fill-color: transparent;
}
.logo::before {
  animation: rainbow-hue 4s linear infinite;
}

/* Apply Rainbow to All Buttons and Header Links */
.btn,
.nav-links > li > a,
a.whatsapp-float {
  background-image: linear-gradient(270deg, #ff0000, #ff7f00, #e6b800, #00b300, #0000ff, #4b0082, #9400d3, #ff0000) !important;
  background-size: 800% 800% !important;
  animation: rainbow-bg 8s linear infinite !important;
  color: white !important;
  border: none !important;
}

.btn:hover,
.nav-links > li > a:hover,
a.whatsapp-float:hover {
  filter: brightness(1.2);
}

/* --- Ad Slots & Monetization --- */
.ad-slot {
  display: block;
  width: 100%;
  margin: 20px auto;
  text-align: center;
  overflow: hidden;
}

body.ads-disabled ins.adsbygoogle,
body.ads-disabled .ad-slot,
body.ads-disabled iframe[name^="google_ads"] {
  display: none !important;
  pointer-events: none !important;
}
