/* 
 * Official IHEC Delhi Web Portal CSS Stylesheet
 * Brand: Indian Health & Education Council, New Delhi
 * Version: 2.0.0
 * Author: Antigravity AI
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens / Variables --- */
:root {
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  /* Color Palette */
  --primary: #0b3c5d;          /* Deep Trust Navy */
  --primary-light: #1d5f8a;    /* Muted Navy */
  --primary-dark: #062237;     /* Dark Navy */
  --accent: #0f9f90;           /* Medical Teal */
  --accent-light: #1df2db;     /* Neon Teal Glow */
  --accent-dark: #09685e;      /* Deep Teal */
  --secondary: #d97706;        /* Warm Gold/Amber */
  --secondary-light: #fbbf24;  /* Muted Gold */
  
  /* System Greys */
  --bg-main: #f8fafc;          /* Off-white Slate */
  --bg-card: #ffffff;          /* Pure White */
  --bg-white: #ffffff;         /* Pure White (alias) */
  --bg-light: #f1f5f9;         /* Light Grey Background */
  --text-dark: #0f172a;        /* Navy-Black */
  --text-muted: #64748b;       /* Cool Grey */
  --border-light: #e2e8f0;     /* Border Grey */
  
  /* Shadows & Radius */
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 15px rgba(15, 159, 144, 0.4);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-dark);
}

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

a:hover {
  color: var(--accent);
}

ul {
  list-style: none;
}

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

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

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-gold { color: var(--secondary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
}

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

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-accent {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 4px 10px rgba(15, 159, 144, 0.2);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: white;
}

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

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

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
}

.badge-primary { background: rgba(11, 60, 93, 0.1); color: var(--primary); }
.badge-accent { background: rgba(15, 159, 144, 0.1); color: var(--accent); }
.badge-gold { background: rgba(217, 119, 6, 0.1); color: var(--secondary); }

/* --- Marquee / Top Notice Bar --- */
.top-notice-bar {
  background-color: var(--primary-dark);
  color: white;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 2px solid var(--secondary);
  overflow: hidden;
  position: relative;
  z-index: 1000;
}

.notice-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.notice-label {
  background: var(--secondary);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: pulse-border 1.5s infinite;
  white-space: nowrap;
}

.notice-marquee {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.notice-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 25s linear infinite;
  font-weight: 500;
}

/* --- Header / Navigation --- */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-sm);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}

.logo-text h1,
.logo-text .logo-title {
  font-size: 26px;
  letter-spacing: 1px;
  line-height: 1;
  font-weight: 700;
  display: block;
}

.logo-text span {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

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

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--primary-dark);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary-dark);
  cursor: pointer;
}

/* --- Hero Carousel --- */
.hero-slider {
  position: relative;
  height: calc(100vh - 120px);
  min-height: 500px;
  background-color: var(--primary-dark);
  overflow: hidden;
}

.slide-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
}

.slide-item.active {
  opacity: 1;
  visibility: visible;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) contrast(1.1);
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11,60,93,0.8) 0%, rgba(15,159,144,0.4) 100%);
  z-index: 2;
}

.slide-content {
  position: relative;
  z-index: 3;
  color: white;
  max-width: 700px;
  padding: 0 20px;
  transform: translateY(30px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-item.active .slide-content {
  transform: translateY(0);
}

.slide-content h1,
.slide-content h2 {
  color: white;
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.15;
}

.slide-content p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
  font-weight: 400;
}

.slide-actions {
  display: flex;
  gap: 15px;
}

/* Slider Controls */
.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition-normal);
}

.slider-control:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.slider-control.prev { left: 30px; }
.slider-control.next { right: 30px; }

.slider-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-normal);
}

.indicator-dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 8px;
}

/* --- Features / Quick Links Section --- */
.quick-links-section {
  margin-top: -50px;
  position: relative;
  z-index: 12;
}

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

.quick-card {
  background: white;
  padding: 30px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-bottom: 4px solid var(--primary);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.quick-icon-wrapper {
  width: 65px;
  height: 65px;
  background: rgba(11, 60, 93, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 20px;
  transition: var(--transition-normal);
}

.quick-card:hover .quick-icon-wrapper {
  background: var(--accent);
  color: white;
  transform: rotate(360deg);
}

.quick-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.quick-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 15px;
  flex-grow: 1;
}

/* --- Standard Layout Section --- */
.section-padding {
  padding: 90px 0;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 60px auto;
  text-align: center;
}

.section-subtitle {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-dark);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.about-content h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary);
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 25px;
  font-size: 16px;
}

.about-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.about-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.about-bullet-item i {
  color: var(--accent);
  font-size: 18px;
  margin-top: 3px;
}

.about-bullet-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.about-bg-box {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: var(--secondary-light);
  border-radius: var(--radius-sm);
  z-index: 1;
}

.about-badge-card {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background: white;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 3;
  border-left: 5px solid var(--accent);
}

.about-badge-card i {
  font-size: 32px;
  color: var(--accent);
}

.about-badge-card-text h4 {
  font-size: 18px;
  line-height: 1;
  margin-bottom: 4px;
}

.about-badge-card-text p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* --- Counter / Stats Section --- */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 60px 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item i {
  font-size: 36px;
  color: var(--accent-light);
  margin-bottom: 15px;
}

.stat-number {
  font-size: 42px;
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 5px;
  display: block;
}

.stat-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
}

/* --- Courses Tabs & Catalog --- */
.courses-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: white;
  border: 1px solid var(--border-light);
  padding: 8px 20px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-normal);
  color: var(--text-muted);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 159, 144, 0.3);
}

.course-header {
  padding: 25px 25px 15px 25px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.course-icon {
  width: 48px;
  height: 48px;
  background: rgba(15, 159, 144, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 20px;
}

.course-body {
  padding: 25px;
  flex-grow: 1;
}

.course-body h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.course-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding: 15px 25px;
  background: var(--bg-main);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.course-meta i {
  color: var(--accent);
}

/* --- Call To Action Section --- */
.cta-banner {
  background: linear-gradient(rgba(11, 60, 93, 0.9), rgba(6, 34, 55, 0.95)), url('../img/cta-bg.jpg') center/cover no-repeat;
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-content h2 {
  color: white;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 30px auto;
  opacity: 0.9;
}

/* --- Contact & Enquiry Form Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: white;
  padding: 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 20px;
  border-left: 4px solid var(--primary);
  align-items: flex-start;
}

.info-card:hover {
  border-left-color: var(--accent);
}

.info-card-icon {
  width: 50px;
  height: 50px;
  background: rgba(11, 60, 93, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.info-card-text h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.info-card-text p {
  font-size: 14px;
  color: var(--text-muted);
}

.enquiry-form-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.enquiry-form-card h3 {
  font-size: 22px;
  margin-bottom: 25px;
  text-align: center;
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-dark);
  line-height: 1.4;
}

select.form-control {
  padding: 8px 15px !important;
  height: 45px !important;
  line-height: 1.5 !important;
  background-color: white !important;
  box-sizing: border-box !important;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition-normal);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 159, 144, 0.15);
}

textarea.form-control {
  height: 120px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
}

.submit-btn:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-glow);
}

/* Form Response Messages */
.form-status {
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  display: none;
}

.form-status.success {
  background: rgba(15, 159, 144, 0.1);
  color: var(--accent-dark);
  border: 1px solid rgba(15, 159, 144, 0.2);
  display: block;
}

.form-status.error {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.2);
  display: block;
}

/* --- About Us Page Layout --- */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  color: white;
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 10px;
}

.breadcrumb {
  font-size: 14px;
  opacity: 0.8;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.breadcrumb a {
  color: var(--accent-light);
}

.about-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  background: white;
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.about-page-grid h2 {
  font-size: 26px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 10px;
}

.about-page-grid p {
  font-size: 16px;
  color: var(--text-dark);
  text-align: justify;
  margin-bottom: 20px;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.highlight-box {
  background: var(--bg-main);
  padding: 25px;
  border-radius: var(--radius-sm);
  text-align: center;
  border-top: 4px solid var(--accent);
}

.highlight-box i {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 15px;
}

.highlight-box h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.highlight-box p {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

/* --- Search Portals (Institutes & Verify) --- */
.search-container-box {
  background: white;
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  max-width: 600px;
  margin: 0 auto;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.search-input-wrapper i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
}

.search-input-wrapper .form-control {
  padding-left: 45px;
  font-size: 15px;
  height: 50px;
}

.search-btn {
  height: 50px;
  padding: 0 30px;
  font-weight: 700;
  font-size: 15px;
}

.result-box {
  margin-top: 25px;
  padding: 25px;
  border-radius: var(--radius-sm);
  display: none;
  animation: fadeIn 0.4s ease;
}

.result-box.success {
  background: rgba(15, 159, 144, 0.05);
  border: 1.5px solid rgba(15, 159, 144, 0.2);
  display: block;
}

.result-box.error {
  background: rgba(239, 68, 68, 0.05);
  border: 1.5px solid rgba(239, 68, 68, 0.2);
  display: block;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
}

.result-header.success { color: var(--accent-dark); }
.result-header.error { color: #b91c1c; }

/* Certificate Preview Sheet */
.certificate-preview {
  margin-top: 20px;
  background: white;
  border: 8px double var(--primary);
  border-radius: 4px;
  padding: 30px;
  position: relative;
  font-family: Georgia, serif;
}

.cert-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.05;
  width: 70%;
  pointer-events: none;
}

.cert-header {
  text-align: center;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.cert-logo {
  width: 60px;
  margin: 0 auto 10px auto;
}

.cert-header h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.cert-header p {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.cert-title {
  text-align: center;
  font-style: italic;
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--text-muted);
}

.cert-recipient {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary);
  text-decoration: underline;
}

.cert-body {
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 25px;
}

.cert-body strong {
  font-family: var(--font-body);
}

.cert-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 11px;
  color: var(--text-dark);
  border-top: 1px solid var(--border-light);
  padding-top: 15px;
}

.cert-sig {
  text-align: right;
  font-family: cursive;
  font-size: 13px;
}

.print-btn-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

/* --- Footer --- */
footer {
  background: var(--primary-dark);
  color: white;
  padding: 80px 0 30px 0;
  border-top: 4px solid var(--accent);
}

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

.footer-col h4 {
  color: white;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--accent);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 15px;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 5px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition-normal);
}

.social-icon:hover {
  background: var(--accent);
  transform: translateY(-3px);
  color: white;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form .form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
}

.newsletter-form .form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
}

.newsletter-btn {
  background: var(--accent);
  border: none;
  color: white;
  width: 45px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-btn:hover {
  background: var(--accent-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a:hover {
  color: var(--accent-light);
}

/* Scroll to Top button */
.scroll-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  opacity: 0;
  visibility: hidden;
  z-index: 99;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
}

/* --- Animations Keyframes --- */
@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .courses-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 70px;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    padding: 40px 20px;
    gap: 20px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 998;
    align-items: center;
    overflow-y: auto;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-link {
    font-size: 18px !important;
    width: 100%;
    text-align: center;
    padding: 10px 0 !important;
  }
  .menu-toggle {
    display: block;
  }
  .hero-slider {
    height: calc(100vh - 110px);
  }
  .slide-content h1,
  .slide-content h2 {
    font-size: 32px;
  }
  .slide-content p {
    font-size: 15px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-highlights {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }
  .courses-grid {
    grid-template-columns: 1fr !important;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .slider-control {
    display: none; /* Hide arrow keys on mobile */
  }
  .cert-meta-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: center;
  }
  .cert-sig {
    text-align: center;
  }
}

/* Printing styling for certificate verification */
@media print {
  body * {
    visibility: hidden;
  }
  .certificate-preview, .certificate-preview * {
    visibility: visible;
  }
  .certificate-preview {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: 5px double #000 !important;
  }
  .print-btn-wrapper {
    display: none;
  }
}

/* =======================================================
 * ADMIN PORTAL & DASHBOARD STYLING
 * ======================================================= */

/* Admin Login Layout */
.admin-login-body {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.admin-login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 440px;
  border-top: 5px solid var(--accent);
}

.admin-login-card h2 {
  font-size: 24px;
  margin-bottom: 8px;
  text-align: center;
}

.admin-login-card p {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  margin-bottom: 30px;
}

/* Dashboard Sidebar Layout */
.admin-dashboard-body {
  background-color: var(--bg-main);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.admin-sidebar {
  background: linear-gradient(180deg, var(--primary-dark) 0%, #061927 100%);
  color: white;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  box-shadow: var(--shadow-lg);
}

.sidebar-header {
  padding: 30px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}

.sidebar-header h2 {
  color: white;
  font-size: 20px;
  margin: 0;
}

.sidebar-nav {
  padding: 30px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sidebar-link:hover,
.sidebar-link.active {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--accent-light);
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dashboard Main Panel Area */
.admin-main {
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.admin-header-bar {
  background: white;
  height: 75px;
  min-height: 75px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 35px;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.admin-header-bar h1 {
  font-size: 22px;
  margin: 0;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-profile span {
  font-weight: 600;
  font-size: 14px;
}

.admin-content {
  padding: 35px;
  flex-grow: 1;
}

/* Dashboard Panel Sections */
.admin-section {
  display: none;
  animation: fadeIn 0.4s ease;
}

.admin-section.active {
  display: block;
}

/* Overview Widgets */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 35px;
}

.admin-stat-card {
  background: white;
  padding: 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 4px solid var(--primary);
}

.admin-stat-card:nth-child(2) { border-bottom-color: var(--accent); }
.admin-stat-card:nth-child(3) { border-bottom-color: var(--secondary); }
.admin-stat-card:nth-child(4) { border-bottom-color: #ef4444; }

.stat-card-text h3 {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-card-text p {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-dark);
}

.stat-card-icon {
  width: 55px;
  height: 55px;
  background: rgba(11, 60, 93, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
}

.admin-stat-card:nth-child(2) .stat-card-icon {
  background: rgba(15, 159, 144, 0.08);
  color: var(--accent);
}

.admin-stat-card:nth-child(3) .stat-card-icon {
  background: rgba(217, 119, 6, 0.08);
  color: var(--secondary);
}

.admin-stat-card:nth-child(4) .stat-card-icon {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

/* Management Console Panels */
.admin-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 30px;
}

.admin-card-header {
  padding: 20px 30px;
  background: white;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.admin-card-header h2 {
  font-size: 18px;
  margin: 0;
}

.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background-color: var(--bg-main);
  padding: 15px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-light);
}

.admin-table td {
  padding: 15px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.admin-table tr:hover {
  background-color: rgba(248, 250, 252, 0.5);
}

.btn-action-sm {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: none;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  transition: var(--transition-fast);
}

.btn-action-edit {
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--secondary);
}

.btn-action-edit:hover {
  background-color: var(--secondary);
  color: white;
}

.btn-action-delete {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.btn-action-delete:hover {
  background-color: #ef4444;
  color: white;
}

/* Modals Overlay for CRUD Panel */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none; /* Managed by JS */
  justify-content: center;
  align-items: flex-start; /* Align to top for scrolling */
  padding: 40px 20px;
  box-sizing: border-box;
  overflow-y: auto; /* Enable scrollbar on overlay */
}

.admin-modal-overlay.active {
  display: flex;
}

.admin-modal-card {
  background: white;
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

/* Ensure modal form behaves as a flex container */
.admin-modal-card form {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

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

.admin-modal-header h3 {
  font-size: 18px;
  margin: 0;
}

.admin-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
}

.admin-modal-body {
  padding: 25px;
  overflow-y: auto;
  flex: 1;
}

.admin-modal-footer {
  padding: 15px 25px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: var(--bg-main);
  flex-shrink: 0;
}

/* --- Flex Grid Helpers (for Admin Modals and Content Panels) --- */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}
.col-md-6 {
  width: 50%;
  padding: 0 10px;
  box-sizing: border-box;
}
.col-md-4 {
  width: 33.333%;
  padding: 0 10px;
  box-sizing: border-box;
}
.col-md-3 {
  width: 25%;
  padding: 0 10px;
  box-sizing: border-box;
}
.form-group {
  margin-bottom: 15px;
}
.admin-header-title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}
.admin-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--primary-dark);
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}

/* Custom dashboard responsive styling */
@media (max-width: 1024px) {
  .admin-dashboard-body {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    display: flex !important;
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    z-index: 1001;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  .admin-sidebar.active {
    left: 0;
  }
  .admin-menu-toggle {
    display: block !important;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--primary-dark);
    cursor: pointer;
    margin-right: 15px;
  }
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Layout columns stack */
  .col-md-6, .col-md-4, .col-md-3 {
    width: 100% !important;
  }
  
  /* Header logo adjustment to prevent overlap */
  .logo-link {
    white-space: nowrap !important;
    gap: 8px !important;
  }
  .logo-img {
    width: 40px !important;
    height: 40px !important;
  }
  .logo-text h1,
  .logo-text .logo-title {
    font-size: 20px !important;
  }
  .logo-text span {
    display: none !important;
  }
  
  /* Section spacings and headers */
  .section-padding {
    padding: 50px 0 !important;
  }
  .section-title {
    font-size: 26px !important;
  }
  
  /* Page headers scaling */
  .page-header h1 {
    font-size: 28px !important;
  }
  .page-header {
    padding: 45px 0 !important;
  }
  
  /* Admin header items wrapping */
  .admin-header-bar {
    padding: 0 20px;
    height: auto;
    min-height: 75px;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .admin-profile {
    font-size: 13px;
  }
  
  /* Table scrollability and min-width to prevent squishing */
  .admin-table:not(.admin-table-compact) {
    min-width: 850px !important;
  }
  .admin-table.admin-table-compact {
    min-width: 450px !important;
  }
}

@media (max-width: 576px) {
  /* Notice bar ticker adjustments */
  .top-notice-bar {
    font-size: 11px !important;
  }
  .notice-label {
    padding: 2px 6px !important;
    font-size: 10px !important;
  }

  /* Slider CTA actions stack */
  .slide-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .slide-actions .btn {
    width: 100%;
    text-align: center;
  }
  
  /* Quick links grid stack */
  .quick-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Search input layout stack (Institute / Student lookups) */
  .search-input-wrapper {
    flex-direction: column;
    gap: 12px;
  }
  .search-input-wrapper .form-control {
    padding-left: 45px;
    width: 100%;
  }
  .search-input-wrapper .search-btn {
    width: 100%;
  }
  .search-input-wrapper i {
    top: 25px; /* adjust relative top icon since input is 50px */
  }

  /* Certificate Preview Card sizing and padding */
  .certificate-preview {
    padding: 15px !important;
    border-width: 4px !important;
  }
  .cert-header h3 {
    font-size: 16px !important;
  }
  .cert-title {
    font-size: 13px !important;
  }
  .cert-recipient {
    font-size: 18px !important;
  }
  .cert-body {
    font-size: 12px !important;
    line-height: 1.6 !important;
  }

  /* Admin modals card auto margin */
  .admin-modal-card {
    width: 95% !important;
    margin: 0 !important;
    max-height: 95vh !important;
  }
  .admin-modal-body {
    padding: 15px !important;
  }

  /* Admin Header Bar stack */
  .admin-header-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px 15px 8px 15px !important;
    height: auto !important;
    min-height: auto !important;
    gap: 8px !important;
  }
  .admin-header-bar > div:first-child {
    justify-content: flex-start !important;
    width: 100% !important;
  }
  .admin-profile {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid var(--border-light) !important;
    padding-top: 8px !important;
    margin-top: 4px !important;
  }
  .admin-profile span {
    font-size: 12.5px !important;
  }
  .admin-profile a {
    padding: 4px 10px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 480px) {
  /* Admin statistics counters stack */
  .admin-stats-grid {
    grid-template-columns: 1fr !important;
  }
  .admin-content {
    padding: 15px 10px;
  }
  
  /* Admin login screen card adjustments */
  .admin-login-card {
    padding: 25px 20px !important;
    width: 90% !important;
    margin: 0 auto;
  }

  /* Card padding reduction on small screens */
  .admin-card-header {
    padding: 12px 15px !important;
  }
  .admin-card-header h2 {
    font-size: 15px !important;
  }
  .admin-card > div[style*="padding: 25px"],
  .admin-card > div[style*="padding: 30px"],
  .admin-card > div[style*="padding: 25px;"],
  .admin-card > div[style*="padding: 30px;"] {
    padding: 15px !important;
  }

  /* Public Site stats stack */
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  /* Contact info card optimization */
  .info-card {
    padding: 15px !important;
    gap: 12px !important;
  }
  /* Hero slide title smaller on small mobile */
  .slide-content h1,
  .slide-content h2 {
    font-size: 24px !important;
  }
  .slide-content p {
    font-size: 13.5px !important;
    margin-bottom: 15px !important;
  }
  .hero-slider {
    height: 460px !important;
  }
}

/* --- Blog Listing & Detail Styles --- */
.blog-filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
  background: white;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.blog-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-cat-btn {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-main);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.blog-cat-btn:hover,
.blog-cat-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.blog-search-box {
  position: relative;
  max-width: 320px;
  width: 100%;
}

.blog-search-box input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border-radius: 30px;
  border: 1px solid var(--border-light);
  outline: none;
  font-size: 14px;
  transition: var(--transition-fast);
}

.blog-search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 159, 144, 0.15);
}

.blog-search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

@media (max-width: 992px) {
  .blogs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .blogs-grid {
    grid-template-columns: 1fr !important;
  }
  .blog-filters-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .blog-search-box {
    max-width: 100%;
  }
}

.blog-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.blog-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f1f5f9;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

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

.blog-card-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card-title {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

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

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

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  transition: var(--transition-fast);
}

.blog-card-link:hover {
  color: var(--accent-dark);
}

.blog-card-link i {
  transition: var(--transition-fast);
}

.blog-card-link:hover i {
  transform: translateX(4px);
}

/* Single Blog Page Styles */
.blog-single-layout {
  padding: 60px 0;
  background: var(--bg-main);
}

.blog-single-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 40px;
}

.blog-single-img-wrapper {
  height: 450px;
  width: 100%;
  overflow: hidden;
  background: #f1f5f9;
}

@media (max-width: 768px) {
  .blog-single-img-wrapper {
    height: 280px;
  }
}

.blog-single-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-single-content-wrapper {
  padding: 40px 50px;
}

@media (max-width: 768px) {
  .blog-single-content-wrapper {
    padding: 25px 20px;
  }
}

.blog-single-category-badge {
  display: inline-block;
  background: rgba(15, 159, 144, 0.1);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-single-title {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

@media (max-width: 768px) {
  .blog-single-title {
    font-size: 24px;
  }
}

.blog-single-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--text-muted);
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.blog-single-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-single-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
}

.blog-single-body p {
  margin-bottom: 20px;
}

.blog-single-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 15px 20px;
  margin: 25px 0;
  background: var(--bg-main);
  font-style: italic;
  font-size: 18px;
  color: var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.blog-single-body h3 {
  font-size: 22px;
  margin: 30px 0 15px 0;
}

.blog-no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-light);
  color: var(--text-muted);
}

.blog-no-posts i {
  font-size: 48px;
  color: var(--border-light);
  margin-bottom: 15px;
}

/* --- Newsletter Responsive Grid --- */
@media (max-width: 768px) {
  .newsletter-flex-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* --- Compact Table Styles for Subscribers List --- */
.admin-table-compact th,
.admin-table-compact td {
  padding: 10px 12px;
  font-size: 13px;
}

/* --- Premium Tab Styles for Campaign Composer --- */
.newsletter-tab-nav {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 25px;
  padding-bottom: 0;
}

.newsletter-tab-btn {
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  padding: 10px 20px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  outline: none;
  border-radius: 4px 4px 0 0;
}

.newsletter-tab-btn:hover {
  color: var(--primary);
  background-color: rgba(0, 0, 0, 0.02);
}

.newsletter-tab-btn.active {
  color: var(--primary-dark);
  background-color: transparent;
}

.newsletter-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px 2px 0 0;
}


