/* ============================================
   BAPUDHAM CYBER CAFE - Main Stylesheet
   ============================================ */

:root {
  --primary: #c0392b;
  --primary-dark: #96281b;
  --primary-light: #e74c3c;
  --secondary: #2980b9;
  --secondary-dark: #1f6391;
  --gold: #f39c12;
  --gold-light: #f1c40f;
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --dark: #1a1a2e;
  --text-dark: #2d3436;
  --text-gray: #636e72;
  --border: #dee2e6;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.2);
  --transition: all 0.3s ease;
  --radius: 12px;
  --radius-sm: 8px;
  --font-hindi: 'Tiro Devanagari Hindi', 'Noto Sans Devanagari', 'Mangal', serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-hindi), 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; }
input, textarea, select { outline: none; }

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

.section-padding { padding: 70px 0; }
.section-padding-sm { padding: 40px 0; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

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

.section-title h2 {
  font-size: 2.2rem;
  color: var(--dark);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  border-radius: 2px;
}

.section-title p {
  color: var(--text-gray);
  font-size: 1.1rem;
  margin-top: 10px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.5);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(41, 128, 185, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41, 128, 185, 0.5);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #e67e22);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.btn-gold:hover {
  transform: translateY(-2px);
}

/* ===== HEADER / NAVBAR ===== */
#header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  transition: var(--transition);
}

#header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.top-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--dark));
  color: var(--white);
  padding: 6px 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a { color: var(--white); }
.top-bar a:hover { color: var(--gold-light); }

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.top-bar i { margin-right: 5px; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand img {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.brand-text .brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.brand-text .brand-sub {
  font-size: 0.75rem;
  color: var(--text-gray);
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-menu a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background: rgba(192, 57, 43, 0.08);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 8px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -8px); }

/* ===== HERO SECTION ===== */
#hero {
  margin-top: 108px;
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(192,57,43,0.75) 100%);
  z-index: 1;
}

.hero-image-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-default-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 40%, var(--primary-dark) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
}

.hero-badge{
display:inline-block;
padding:10px 20px;
border-radius:30px;
background:rgba(255,255,255,0.15);
color:white;
font-size:14px;
white-space:nowrap;
max-width:100%;
overflow:hidden;
text-overflow:ellipsis;
}
.hero-badge i { color: var(--gold-light); }

.hero-content h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-content h1 span { color: var(--gold-light); }

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 35px;
  opacity: 0.95;
  animation: fadeInUp 1s ease;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  animation: fadeInUp 1.2s ease;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
  animation: fadeInUp 1.4s ease;
}

.stat-item {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
}

.stat-item .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-light);
}

.stat-item .stat-label {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 5px;
}

/* ===== AD BANNER ===== */
.ad-banner {
  background: linear-gradient(135deg, #fff9e6, #fff3cd);
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  padding: 15px;
  text-align: center;
  margin: 20px 0;
  font-size: 0.9rem;
  color: var(--text-gray);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-banner-wide { min-height: 120px; }
.ad-banner-square { min-height: 250px; min-width: 250px; }

/* ===== MARQUEE TICKER ===== */
.ticker-wrap {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 10px 0;
  overflow: hidden;
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--dark);
  padding: 4px 15px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  border-radius: 0 20px 20px 0;
  margin-right: 20px;
}

.ticker-content {
  display: flex;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  padding: 0 40px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticker-item::after {
  content: '★';
  color: var(--gold-light);
  margin-left: 20px;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SERVICES SECTION ===== */
.services-section { background: var(--light-bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  transform: scale(1.1);
}

.service-icon {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, rgba(192,57,43,0.1), rgba(41,128,185,0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.8rem;
  color: var(--primary);
  transition: var(--transition);
}

.service-card h3 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 8px;
  font-weight: 700;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.5;
}

.service-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ===== CARDS / GENERAL ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
}

.card-body { padding: 20px; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: var(--text-gray);
  flex-wrap: wrap;
}

.card-meta i { color: var(--primary); }

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

.card-title a:hover { color: var(--primary); }

.card-text {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 15px;
}

.card-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.read-more {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.read-more:hover { color: var(--primary-dark); gap: 8px; }

.tag {
  display: inline-block;
  background: rgba(192, 57, 43, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}

/* ===== GRID LAYOUTS ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* ===== NOTIFICATIONS/NOTICES ===== */
.notif-list { display: flex; flex-direction: column; gap: 15px; }

.notif-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: var(--transition);
}

.notif-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-hover);
}

.notif-item.notice { border-left-color: var(--secondary); }
.notif-item.new { border-left-color: var(--gold); }

.notif-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.notif-item.notice .notif-icon { background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)); }
.notif-item.new .notif-icon { background: linear-gradient(135deg, var(--gold), #e67e22); }

.notif-content .notif-title {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
  font-size: 1rem;
}

.notif-content .notif-desc {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 8px;
}

.notif-content .notif-date {
  font-size: 0.78rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 5px;
}

.new-badge {
  display: inline-block;
  background: #e74c3c;
  color: white;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  animation: blink 1.5s infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== SIDEBAR ===== */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: start;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 25px;
  overflow: hidden;
}

.widget-title {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-body { padding: 20px; }

.sidebar-post-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.sidebar-post-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.sidebar-post-img {
  width: 70px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-post-img-placeholder {
  width: 70px;
  height: 60px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.sidebar-post-content .title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 4px;
}

.sidebar-post-content .title a:hover { color: var(--primary); }

.sidebar-post-content .date {
  font-size: 0.75rem;
  color: var(--text-gray);
}

/* ===== BLOG ARTICLE ===== */
.article-header { margin-bottom: 30px; }

.article-title {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 15px;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-gray);
  font-size: 0.9rem;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.article-meta i { color: var(--primary); }

.article-featured-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 25px;
}

.article-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.article-content h2, .article-content h3 { color: var(--dark); margin: 25px 0 12px; }
.article-content p { margin-bottom: 15px; }
.article-content ul, .article-content ol { padding-left: 20px; margin-bottom: 15px; }
.article-content li { margin-bottom: 8px; }
.article-content img { border-radius: var(--radius-sm); margin: 15px 0; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--dark), var(--primary-dark));
  color: var(--white);
  padding: 80px 0 40px;
  margin-top: 108px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(192,57,43,0.2);
  border-radius: 50%;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

.breadcrumb a { color: var(--gold-light); }
.breadcrumb i { font-size: 0.7rem; }

/* ===== ABOUT / FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.feature-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 25px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.8rem;
  color: var(--white);
}

.feature-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-item p { font-size: 0.9rem; color: var(--text-gray); }

/* ===== CONTACT ===== */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 25px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-icon.blue { background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)); }
.contact-icon.green { background: linear-gradient(135deg, #27ae60, #2ecc71); }

.contact-detail h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.contact-detail p, .contact-detail a { font-size: 0.9rem; color: var(--text-gray); }
.contact-detail a:hover { color: var(--primary); }

/* ===== CONTACT FORM ===== */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--light-bg);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-group textarea { resize: vertical; min-height: 130px; }

/* ===== GOOGLE MAP ===== */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 350px;
}

.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: var(--transition);
  cursor: pointer;
}

.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6); }

.whatsapp-tooltip {
  background: var(--dark);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: none;
  white-space: nowrap;
}

.whatsapp-float:hover .whatsapp-tooltip { display: block; }

/* ===== SCROLL TO TOP ===== */
#scrollTop {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 998;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.4);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
}

#scrollTop.visible { opacity: 1; pointer-events: all; }
#scrollTop:hover { transform: translateY(-3px); background: var(--primary-dark); }

/* ===== FOOTER ===== */
#footer {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
}

.footer-top {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-brand .logo-wrap img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.footer-brand .brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand .brand-sub {
  font-size: 0.8rem;
  color: var(--gold-light);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: rgba(255,255,255,0.7);
}

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--white);
  transition: var(--transition);
}

.social-btn:hover { transform: translateY(-3px); opacity: 0.8; }
.social-btn.fb { background: #1877f2; }
.social-btn.yt { background: #ff0000; }
.social-btn.tw { background: #1da1f2; }
.social-btn.ig { background: linear-gradient(135deg, #405de6, #e1306c); }
.social-btn.wa { background: #25D366; }

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover { color: var(--gold-light); padding-left: 5px; }
.footer-links a i { font-size: 0.75rem; color: var(--primary); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}

.footer-contact-item i { color: var(--gold-light); margin-top: 3px; }

.footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 15px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.footer-bottom a { color: var(--gold-light); }

/* ===== SEARCH ===== */
.search-bar {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto 30px;
}

.search-bar input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.95rem;
  font-family: inherit;
}

.search-bar input:focus { border-color: var(--primary); }

.search-bar button {
  padding: 12px 25px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.search-bar button:hover { background: var(--primary-dark); }

/* ===== CATEGORY FILTER ===== */
.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  justify-content: center;
}

.cat-tab {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
  color: var(--text-dark);
  border: 2px solid var(--border);
  transition: var(--transition);
  font-family: inherit;
}

.cat-tab.active,
.cat-tab:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== LOADING / SKELETON ===== */
.skeleton {
  animation: skeleton-loading 1.5s ease-in-out infinite;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-gray);
}

.empty-state i { font-size: 3rem; margin-bottom: 15px; opacity: 0.4; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; }

/* ===== ALERTS ===== */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-error { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.alert-info { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }
.alert-warning { background: #fff3cd; color: #856404; border-left: 4px solid #ffc107; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-dark);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.page-btn.active, .page-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== SHARE BUTTONS ===== */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  transition: var(--transition);
}

.share-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.share-btn.fb { background: #1877f2; }
.share-btn.wa { background: #25D366; }
.share-btn.tw { background: #1da1f2; }
.share-btn.cp { background: var(--text-gray); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in { animation: fadeIn 0.6s ease; }
.fade-in-up { animation: fadeInUp 0.6s ease; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.active .modal-box { transform: scale(1); }

.modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 { font-size: 1.1rem; }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--light-bg);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover { background: var(--border); }

.modal-body { padding: 25px; }
.modal-footer { padding: 20px 25px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 1.9rem; }
  .section-title h2 { font-size: 1.6rem; }
  
  .hamburger { display: flex; }
  
  .nav-menu {
    position: fixed;
    top: 108px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 108px);
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 5px;
    box-shadow: 5px 0 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    overflow-y: auto;
    z-index: 999;
    align-items: flex-start;
  }
  
  .nav-menu.open { left: 0; }
  .nav-menu a { width: 100%; padding: 12px 15px; font-size: 1rem; }
  
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  
  .footer-top { grid-template-columns: 1fr; gap: 25px; }
  
  .hero-stats { grid-template-columns: 1fr; gap: 15px; }
  
  .top-bar-left span:not(:first-child) { display: none; }
  
  .page-header h1 { font-size: 1.8rem; }
  
  .article-title { font-size: 1.5rem; }
  .article-featured-img { height: 250px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.5rem; }
  .hero-buttons { flex-direction: column; }
  .btn { justify-content: center; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .whatsapp-float { bottom: 20px; right: 15px; }
  #scrollTop { right: 15px; bottom: 85px; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-gold { color: var(--gold); }
.text-gray { color: var(--text-gray); }
.bg-light { background: var(--light-bg); }
.bg-primary { background: var(--primary); }
.d-none { display: none; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-10 { gap: 10px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.w-100 { width: 100%; }
.grid-3{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
gap:25px;
}

.grid-3 > div{
padding:25px;
border-radius:14px;
background:white;
box-shadow:0 8px 25px rgba(0,0,0,0.08);
}

/* ===== LANGUAGE & FONT CONTROLS ===== */
.lang-font-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-btn {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-weight: 600;
}
.top-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* ===== DEVELOPER CREDIT FOOTER ===== */
.footer-bottom p {
  line-height: 1.5;
}

/* ===== MOBILE FONT ADJUSTMENTS ===== */
@media (max-width: 768px) {
  html { font-size: 95%; }
  .top-bar { font-size: 0.78rem; padding: 5px 0; }
  .top-bar-left { gap: 8px; }
  .top-bar-right { gap: 8px; }
  .lang-font-controls { gap: 4px; }
  .top-btn { padding: 2px 6px; font-size: 0.7rem; }
  .nav-brand img { width: 50px; height: 50px; }
  .brand-text .brand-name { font-size: 0.95rem; }
  .brand-text .brand-sub { font-size: 0.68rem; }
  .nav-menu a { font-size: 0.92rem; }
  .hero-content h1 { font-size: 1.7rem; }
  .hero-content p { font-size: 1rem; }
  .section-title h2 { font-size: 1.4rem; }
  .service-card h3 { font-size: 0.9rem; }
  .service-card p { font-size: 0.8rem; }
  .card-title { font-size: 1rem; }
  .card-text { font-size: 0.85rem; }
  .footer-top { padding: 40px 0 30px; }
  .footer-brand p { font-size: 0.82rem; }
  .footer-col h4 { font-size: 0.9rem; }
  .footer-links a { font-size: 0.82rem; }
  .footer-bottom { font-size: 0.78rem; }
  .page-header { padding: 60px 0 30px; }
  .page-header h1 { font-size: 1.6rem; }
  .article-title { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  html { font-size: 90%; }
  .top-bar-left span:nth-child(3) { display: none; }
  .hero-content h1 { font-size: 1.4rem; }
  .hero-content p { font-size: 0.9rem; }
  .section-title h2 { font-size: 1.2rem; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service-card { padding: 18px 14px; }
  .service-icon { width: 50px; height: 50px; font-size: 1.4rem; }
  .service-card h3 { font-size: 0.82rem; }
  .btn { padding: 10px 20px; font-size: 0.9rem; }
  .notif-item { padding: 14px 16px; }
  .notif-content .notif-title { font-size: 0.92rem; }
  .notif-content .notif-desc { font-size: 0.82rem; }
  .contact-info-card { padding: 20px; }
  .form-group label { font-size: 0.85rem; }
  .form-group input, .form-group textarea, .form-group select { font-size: 0.9rem; padding: 10px 12px; }
}

/* ===== LOGO FIX FOR SUBPAGES ===== */
.nav-brand img {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
