/*
Theme Name: PMYP Govt Schemes Theme
Theme URI: https://pmyp.com.pk
Author: Antigravity AI
Author URI: https://pmyp.com.pk
Description: Official Ultra-Fast, 100% Responsive & Modern Green Govt Schemes Theme for pmyp.com.pk
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: pmyp-theme
*/

:root {
  --primary-green: #064e3b;      /* Rich Deep Emerald Green */
  --medium-green: #047857;       /* Vibrant Pakistan Green */
  --light-green: #10b981;        /* Accent Mint Green */
  --soft-green-bg: #ecfdf5;     /* Clean Soft Tint Background */
  --gold-accent: #d97706;       /* Premium Gold Badge Accent */
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --text-dark: #0f172a;         /* High Contrast Dark Charcoal Text */
  --text-muted: #475569;        /* Muted Gray Text */
  --bg-page: #f8fafc;           /* Light Cool Gray Page BG */
  --card-bg: #ffffff;
  --border-light: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(6, 78, 59, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(6, 78, 59, 0.08);
  --shadow-hover: 0 20px 35px -5px rgba(6, 78, 59, 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Performance Standard */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Announcement Ticker Bar */
.top-ticker-bar {
  background: var(--primary-green);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ticker-badge {
  background: var(--gold-accent);
  color: #fff;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ticker-content {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.92);
}

/* Header & Navbar */
.main-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--medium-green);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--primary-green);
  letter-spacing: -0.5px;
}

.brand-logo .logo-icon {
  width: 44px;
  height: 44px;
  background: var(--soft-green-bg);
  border: 2px solid var(--medium-green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--medium-green);
  font-size: 1.4rem;
}

.brand-logo span.tag {
  font-size: 0.75rem;
  background: var(--soft-green-bg);
  color: var(--medium-green);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--medium-green);
}

.header-cta {
  background: var(--medium-green);
  color: #fff;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 30px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-cta:hover {
  background: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(4, 120, 87, 0.35);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary-green);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-green) 0%, #022c22 100%);
  color: #ffffff;
  padding: 60px 0 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  text-align: center;
  align-items: center;
  max-width: 850px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  align-self: center;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: #6ee7b7;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 35px;
  font-weight: 400;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Search Bar */
.search-box-wrapper {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.search-form {
  display: flex;
  background: #ffffff;
  padding: 6px;
  border-radius: 50px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 24px;
  font-size: 1.05rem;
  border-radius: 50px 0 0 50px;
  color: var(--text-dark);
}

.search-btn {
  background: var(--medium-green);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-btn:hover {
  background: var(--primary-green);
}

/* Quick Scheme Cards */
.quick-schemes-wrapper {
  margin-top: -45px;
  position: relative;
  z-index: 10;
}

.quick-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.quick-card {
  background: var(--card-bg);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quick-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--medium-green);
}

.quick-card-icon {
  width: 56px;
  height: 56px;
  background: var(--soft-green-bg);
  color: var(--medium-green);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.quick-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.quick-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Main Content Area */
.main-layout-section {
  padding: 60px 0;
}

.layout-grid {
  display: grid;
  grid-template-columns: 2.7fr 1fr;
  gap: 36px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 14px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 24px;
  background: var(--medium-green);
  border-radius: 3px;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(4, 120, 87, 0.3);
}

.post-thumb-wrapper {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #e2e8f0;
}

.post-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-thumb-img {
  transform: scale(1.05);
}

.post-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary-green);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

.post-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.post-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.post-title a:hover {
  color: var(--medium-green);
}

.post-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.post-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.read-more-btn {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--medium-green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.widget {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--soft-green-bg);
}

.alert-widget-box {
  background: linear-gradient(135deg, var(--soft-green-bg) 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
}

.alert-widget-box h4 {
  color: var(--primary-green);
  font-weight: 800;
  margin-bottom: 8px;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

/* Footer */
.main-footer {
  background: var(--primary-green);
  color: #ffffff;
  padding: 60px 0 20px 0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #6ee7b7;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 1024px) {
  .quick-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .header-cta { display: none; }
  .mobile-toggle { display: block; }
  .hero-title { font-size: 2rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .quick-cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
