/* WhenTheDate.com - Main Stylesheet */
/* Color Scheme: Professional Deep Blue (#0A4B8F), Light Grey (#F5F5F5), Deep Grey (#333333) */
/* Mobile-First Responsive Design */

/* ==================== FONT IMPORTS ==================== */
@font-face {
  font-family: 'Lexend';
  src: url('../font/Lexend/Lexend-Thin.woff2') format('woff2'),
       url('../font/Lexend/Lexend-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lexend';
  src: url('../font/Lexend/Lexend-ExtraLight.woff2') format('woff2'),
       url('../font/Lexend/Lexend-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lexend';
  src: url('../font/Lexend/Lexend-Light.woff2') format('woff2'),
       url('../font/Lexend/Lexend-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lexend';
  src: url('../font/Lexend/Lexend-Regular.woff2') format('woff2'),
       url('../font/Lexend/Lexend-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lexend';
  src: url('../font/Lexend/Lexend-Medium.woff2') format('woff2'),
       url('../font/Lexend/Lexend-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lexend';
  src: url('../font/Lexend/Lexend-SemiBold.woff2') format('woff2'),
       url('../font/Lexend/Lexend-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lexend';
  src: url('../font/Lexend/Lexend-Bold.woff2') format('woff2'),
       url('../font/Lexend/Lexend-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lexend';
  src: url('../font/Lexend/Lexend-ExtraBold.woff2') format('woff2'),
       url('../font/Lexend/Lexend-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lexend';
  src: url('../font/Lexend/Lexend-Black.woff2') format('woff2'),
       url('../font/Lexend/Lexend-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ==================== RESET & BASE STYLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #0A4B8F;
  --secondary-blue: #1565C0;
  --light-blue: #E3F2FD;
  --light-grey: #F5F5F5;
  --deep-grey: #333333;
  --medium-grey: #666666;
  --success-green: #28a745;
  --failure-red: #8B0000;
  --white: #FFFFFF;
  --border-color: #E0E0E0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
  font-family: 'Lexend', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--deep-grey);
  background-color: var(--light-grey);
  overflow-x: hidden;
}

.wrapper {
  width: 100%;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--deep-grey);
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-blue);
}

/* ==================== BUTTONS ==================== */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--white);
}

.btn-success {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--success-green);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-failure {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--failure-red);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-failure:hover {
  background-color: #660000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ==================== HEADER ==================== */
.site-header {
  background-color: var(--white);
  box-shadow: 0 2px 20px rgba(10, 75, 143, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(10, 75, 143, 0.1);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(10, 75, 143, 0.15);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-blue);
  white-space: nowrap;
  letter-spacing: -0.5px;
}

/* Navigation */
.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--deep-grey);
  font-weight: 500;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-separator {
  display: none;
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 18px;
  opacity: 0.4;
  margin: 0 4px;
  pointer-events: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--primary-blue);
  transition: transform 0.3s ease;
}

.nav-link:hover {
  background-color: var(--light-blue);
  color: var(--primary-blue);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
  background-color: var(--light-blue);
  color: var(--primary-blue);
  font-weight: 600;
}

/* Header Actions */
.header-actions {
  display: none;
  align-items: center;
  flex-shrink: 0;
  margin-left: 12px;
}

.btn-login,
.btn-register {
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.3px;
}

.btn-login {
  color: var(--primary-blue);
  background-color: transparent;
  border: 2px solid var(--primary-blue);
}

.btn-login:hover {
  background-color: var(--light-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 75, 143, 0.2);
}

.btn-register {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(10, 75, 143, 0.2);
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 75, 143, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  z-index: 1001;
}

.mobile-menu-toggle:hover {
  background-color: var(--light-grey);
}

.mobile-menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--primary-blue);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation Overlay with 3D Stack Effect */
.main-nav.mobile-active {
  display: flex;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 15px 50px rgba(10, 75, 143, 0.25),
              0 10px 30px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 32px 24px 24px;
  animation: slideDown3D 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-style: preserve-3d;
  perspective: 1000px;
  border-top: 3px solid var(--primary-blue);
}

@keyframes slideDown3D {
  from {
    opacity: 0;
    transform: translateY(-30px) rotateX(-15deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

.main-nav.mobile-active .nav-list {
  flex-direction: column;
  width: 100%;
  gap: 12px;
  align-items: stretch;
  justify-content: flex-start;
}

.main-nav.mobile-active .nav-separator {
  display: none;
}

.main-nav.mobile-active .nav-list li {
  animation: stackIn 0.4s ease forwards;
  opacity: 0;
  transform: translateY(-20px) translateZ(-50px);
}

.main-nav.mobile-active .nav-list li:nth-child(1) {
  animation-delay: 0.1s;
}

.main-nav.mobile-active .nav-list li:nth-child(2) {
  animation-delay: 0.15s;
}

.main-nav.mobile-active .nav-list li:nth-child(3) {
  animation-delay: 0.2s;
}

.main-nav.mobile-active .nav-list li:nth-child(4) {
  animation-delay: 0.25s;
}

@keyframes stackIn {
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

.main-nav.mobile-active .nav-link {
  width: 100%;
  text-align: center;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  background: var(--white);
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(10, 75, 143, 0.1),
              0 2px 4px rgba(0, 0, 0, 0.05),
              inset 0 -2px 4px rgba(0, 0, 0, 0.02);
  transform-style: preserve-3d;
  transition: all 0.3s ease;
}

.main-nav.mobile-active .nav-link:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(10, 75, 143, 0.2),
              0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-blue);
  background: var(--light-blue);
}

.main-nav.mobile-active .nav-link:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 2px 8px rgba(10, 75, 143, 0.15);
}

.main-nav.mobile-active ~ .header-actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 20px;
  gap: 12px;
  animation: stackIn 0.4s ease 0.3s forwards;
  opacity: 0;
}

.main-nav.mobile-active ~ .header-actions .btn-login,
.main-nav.mobile-active ~ .header-actions .btn-register {
  width: 100%;
  text-align: center;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(10, 75, 143, 0.2),
              0 3px 6px rgba(0, 0, 0, 0.1),
              inset 0 -2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.main-nav.mobile-active ~ .header-actions .btn-login:hover,
.main-nav.mobile-active ~ .header-actions .btn-register:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(10, 75, 143, 0.3),
              0 5px 10px rgba(0, 0, 0, 0.15);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 16px;
  margin-bottom: 30px;
  opacity: 0.95;
  line-height: 1.4;
}

.calendar-category {
  margin-bottom: 40px;
}

.calendar-category .category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 25px;
  text-align: left;
  padding-left: 15px;
  border-left: 4px solid #667eea;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-category .date-display-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.calendar-category .date-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.calendar-category .date-card:hover {
  transform: translateY(-3px);
  border-color: #667eea;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.calendar-category .date-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calendar-category .date-value {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #333;
}

.search-container {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--white);
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-input {
  width: 100%;
  border: none;
  padding: 12px 20px;
  font-size: 15px;
  border-radius: 8px;
  outline: none;
  color: var(--deep-grey);
}

.search-btn {
  border-radius: 8px;
  padding: 12px 24px;
  white-space: nowrap;
  width: 100%;
}

/* ==================== SECTION STYLES ==================== */
.countdown-section,
.festivals-section,
.blog-section,
.today-section,
.tools-section {
  padding: 40px 0;
  background-color: var(--white);
}

.festivals-section {
  background-color: var(--light-grey);
}

.today-section {
  background-color: var(--light-grey);
}

.section-title {
  font-size: 26px;
  text-align: center;
  margin-bottom: 30px;
  color: var(--deep-grey);
  position: relative;
  padding-bottom: 15px;
  line-height: 1.3;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-blue);
  border-radius: 2px;
}

/* ==================== COUNTDOWN WIDGETS ==================== */
.countdown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.countdown-widget {
  background-color: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.countdown-widget:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-blue);
}

.countdown-event-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.countdown-timer {
  font-size: 32px;
  font-weight: 700;
  color: var(--deep-grey);
  margin-bottom: 8px;
}

.countdown-label {
  font-size: 14px;
  color: var(--medium-grey);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==================== FESTIVALS GRID ==================== */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 24px;
  background-color: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 25px;
  color: var(--deep-grey);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tab:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.filter-tab.active {
  background-color: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.festivals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.festival-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-blue);
  cursor: pointer;
}

.festival-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.festival-date {
  font-size: 14px;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.festival-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--deep-grey);
  margin-bottom: 8px;
}

.festival-type {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--light-grey);
  color: var(--medium-grey);
  font-size: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.festival-description {
  font-size: 14px;
  color: var(--medium-grey);
  line-height: 1.5;
}

/* ==================== BLOG GRID ==================== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.blog-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--light-grey);
}

.blog-content {
  padding: 24px;
}

.blog-category {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--primary-blue);
  color: var(--white);
  font-size: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.blog-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--deep-grey);
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 14px;
  color: var(--medium-grey);
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-meta {
  font-size: 13px;
  color: var(--medium-grey);
  display: flex;
  gap: 16px;
}

/* ==================== TODAY'S EVENTS ==================== */
.today-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.today-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary-blue);
}

.today-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--deep-grey);
}

.today-card p {
  font-size: 14px;
  color: var(--medium-grey);
  line-height: 1.5;
}

/* ==================== TOOLS SECTION ==================== */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.tool-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
  display: block;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-blue);
}

.tool-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.tool-card h3 {
  font-size: 18px;
  color: var(--deep-grey);
  margin-bottom: 10px;
}

.tool-card p {
  font-size: 14px;
  color: var(--medium-grey);
  line-height: 1.5;
}

/* ==================== VIEW MORE ==================== */
.view-more-container {
  text-align: center;
  margin-top: 32px;
}

/* ==================== FOOTER ==================== */
.site-footer {
  background-color: var(--deep-grey);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--white);
  opacity: 0.8;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  opacity: 1;
  padding-left: 5px;
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.social-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 20px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-blue);
  transform: translateY(-3px);
}

.footer-auth-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-btn-login,
.footer-btn-signup {
  flex: 1;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-btn-login {
  color: var(--white);
  background-color: transparent;
  border: 2px solid var(--white);
}

.footer-btn-login:hover {
  background-color: var(--white);
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.footer-btn-signup {
  color: var(--white);
  background: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.footer-btn-signup:hover {
  background: var(--secondary-blue);
  border-color: var(--secondary-blue);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom .copyright {
  font-size: 14px;
  opacity: 0.8;
  margin: 0;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-legal a {
  color: var(--white);
  opacity: 0.8;
  font-size: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-legal a:hover {
  opacity: 1;
  color: var(--white);
}

.footer-legal .separator {
  color: var(--white);
  opacity: 0.5;
}

.footer-bottom p {
  font-size: 14px;
  opacity: 0.8;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet and up (768px+) */
@media (min-width: 768px) {
  .hero-title {
    font-size: 42px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .category-title {
    font-size: 24px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .date-display-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .date-value {
    font-size: 16px;
  }
  
  .search-container {
    flex-direction: row;
    border-radius: 50px;
    max-width: 600px;
  }
  
  .search-input {
    border-radius: 50px;
  }
  
  .search-btn {
    width: auto;
    border-radius: 50px;
  }
  
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .festivals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .today-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .logo-text {
    font-size: 24px;
  }
  
  .logo-img {
    height: 52px;
  }
}

/* Desktop (968px+) */
@media (min-width: 968px) {
  .header-content {
    padding: 20px 0;
  }
  
  .logo-img {
    height: 56px;
  }
  
  .logo-text {
    font-size: 26px;
  }
  
  .main-nav {
    display: flex;
    flex: 1;
  }
  
  .nav-list {
    gap: 0;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
  }
  
  .nav-separator {
    display: block;
  }
  
  .nav-link {
    font-size: 14px;
    padding: 12px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8),
                 0 2px 2px rgba(10, 75, 143, 0.1),
                 0 3px 4px rgba(10, 75, 143, 0.08),
                 0 -1px 0 rgba(10, 75, 143, 0.05);
    color: var(--primary-blue);
    position: relative;
  }
  
  .nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(227, 242, 253, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
  }
  
  .nav-link:hover::before {
    opacity: 1;
  }
  
  .nav-link:hover {
    color: var(--secondary-blue);
    text-shadow: 0 2px 1px rgba(255, 255, 255, 0.9),
                 0 4px 6px rgba(10, 75, 143, 0.2),
                 0 6px 10px rgba(10, 75, 143, 0.15),
                 0 -1px 0 rgba(10, 75, 143, 0.1),
                 0 0 20px rgba(21, 101, 192, 0.3);
    transform: translateY(-2px);
  }
  
  .nav-link.active {
    color: var(--secondary-blue);
    text-shadow: 0 2px 1px rgba(255, 255, 255, 0.9),
                 0 3px 5px rgba(10, 75, 143, 0.25),
                 0 5px 8px rgba(10, 75, 143, 0.15),
                 0 -1px 0 rgba(10, 75, 143, 0.1);
    font-weight: 700;
  }
  
  .header-actions {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .hero-section {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .category-title {
    font-size: 26px;
  }
  
  .section-title {
    font-size: 36px;
  }
  
  .date-display-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .date-value {
    font-size: 17px;
  }
  
  .date-label {
    font-size: 13px;
  }
  
  .search-container {
    max-width: 700px;
  }
  
  .countdown-section,
  .festivals-section,
  .blog-section,
  .today-section,
  .tools-section {
    padding: 60px 0;
  }
  
  .countdown-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .festivals-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  
  .today-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .tools-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .logo-text {
    font-size: 24px;
  }
}

/* Mobile specific (below 768px) */
@media (max-width: 767px) {
/* Mobile specific (below 768px) */
@media (max-width: 767px) {
  .header-content {
    padding: 10px 0;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .hero-section {
    padding: 40px 0;
  }
  
  .filter-tabs {
    gap: 8px;
  }
  
  .filter-tab {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* ==================== LOADING STATE ==================== */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--medium-grey);
}

.loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--light-grey);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary-blue); }
.text-success { color: var(--success-green); }
.text-failure { color: var(--failure-red); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }

/* ==================== ADSENSE SECTION ==================== */
.ad-section {
  background: #f8f9fa;
  padding: 30px 0;                 /* TOP & BOTTOM ALWAYS */
  border-bottom: 1px solid #e0e0e0;
  width: 100%;
}

/* INNER WRAPPER – NO PADDING */
.ad-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* GOOGLE AD */
.ad-inner ins.adsbygoogle {
  display: block;                  /* GOOGLE REQUIRED */
  margin: 0 auto;
  min-height: 90px;
}
/* ==================== MODERN HERO SECTION ==================== */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #fff !important;
  padding: 120px 20px !important;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-title {
  font-size: 4rem !important;
  font-weight: 900 !important;
  margin-bottom: 20px !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.3rem !important;
  font-weight: 300 !important;
  margin-bottom: 50px !important;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}



/* ==================== CALENDARS SECTION ==================== */
.calendars-section {
  padding: 80px 20px;
  background: #f8f9fa;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 15px;
  color: #333;
}

.section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: #666;
  margin-bottom: 50px;
}

/* ==================== SEARCH RESULTS PAGE ==================== */
.search-results-section {
  padding: 60px 20px;
  min-height: 60vh;
  background: #fff;
}

.search-header {
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.search-form-inline {
  width: 100%;
}

.search-form-inline .search-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  transition: all 0.3s ease;
}

.search-form-inline .search-wrapper:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-form-inline .search-icon {
  color: #999;
  flex-shrink: 0;
}

.search-input-inline {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 14px 0;
  color: #333;
  background: transparent;
  font-family: 'Lexend', sans-serif;
}

.search-btn-inline {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Lexend', sans-serif;
  flex-shrink: 0;
}

.search-btn-inline:hover {
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
  transform: translateY(-1px);
}

.search-query-info {
  text-align: center;
  margin-bottom: 30px;
  padding: 15px;
  background: #f0f4ff;
  border-radius: 10px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.search-query-info p {
  margin: 0;
  color: #666;
  font-size: 1rem;
}

.search-query-info strong {
  color: #667eea;
  font-weight: 700;
}

.results-count {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
  font-size: 1.1rem;
}

.search-results {
  width: 100%;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.result-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.result-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.result-type {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.result-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  margin-bottom: 15px;
  font-size: 1rem;
}

.result-date svg {
  color: #667eea;
}

.result-description {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

.no-results,
.empty-search {
  text-align: center;
  padding: 60px 20px;
}

.no-results svg,
.empty-search svg {
  color: #ccc;
  margin-bottom: 20px;
}

.no-results h3,
.empty-search h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.no-results p,
.empty-search p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.suggestion {
  margin-top: 30px;
  font-weight: 600;
  color: #333;
}

.search-suggestions {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.search-suggestions li a {
  display: inline-block;
  padding: 10px 20px;
  background: #f0f4ff;
  color: #667eea;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.search-suggestions li a:hover {
  background: #667eea;
  color: #fff;
  transform: translateY(-2px);
}

/* ==================== RESPONSIVE HERO & SEARCH (MOBILE FIRST) ==================== */

/* Tablet (576px+) */
@media (min-width: 576px) {
  .page-title {
    font-size: 2.2rem;
  }
  
  .results-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* Tablet Landscape (768px+) */
@media (min-width: 768px) {
  .hero-section {
    padding: 100px 20px !important;
  }

  .hero-title {
    font-size: 3rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.2rem !important;
  }
  
  .page-title {
    font-size: 2.5rem;
  }
  
  .search-results-section {
    padding: 70px 20px;
  }
  
  .results-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

/* Desktop (992px+) */
@media (min-width: 992px) {
  .hero-section {
    padding: 120px 20px !important;
  }

  .hero-title {
    font-size: 3.5rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.25rem !important;
  }
  
  .search-results-section {
    padding: 80px 20px;
  }
  
  .results-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .hero-section {
    padding: 130px 20px !important;
  }

  .hero-title {
    font-size: 4rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.3rem !important;
  }
  
  .search-results-section {
    padding: 90px 20px;
  }
  
  .results-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
  }
}

/* Extra Small Mobile (max-width: 375px) */

