/*
 * Pune Book Festival Website
 * Brand Colors (fallback palette):
 * --maroon: #8D1E1E (primary brand color)
 * --gold: #F5C242 (accent/highlights)
 * --cream: #FFF7F0 (light background)
 * --ink: #1F1F1F (dark text)
 * --accent: #2E78FF (links/CTAs)
 */

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

/* CSS Variables */
:root {
  /* Brand Colors */
  --maroon: #8D1E1E;
  --gold: #F5C242;
  --cream: #FFF7F0;
  --ink: #1F1F1F;
  --accent: #2E78FF;
  --whatsapp: #25D366;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-md);
  color: var(--ink);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
}

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

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

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

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: var(--space-sm);
}

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

.btn-primary:hover {
  background-color: #6B1515;
  color: var(--white);
}

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

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

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

.btn-wa:hover {
  background-color: #1DA851;
  color: var(--white);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
}

/* Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-new {
  background-color: var(--accent);
  color: var(--white);
}

.badge-workshop {
  background-color: var(--gold);
  color: var(--ink);
}

.badge-kids {
  background-color: #10B981;
  color: var(--white);
}

/* Card Styles */
.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.card-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--gray-200);
}

.card-body {
  padding: var(--space-lg);
}

.card-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--gray-200);
  background-color: var(--gray-50);
}

/* Header Styles */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--maroon);
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--ink);
  font-weight: 500;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link:hover {
  color: var(--maroon);
}

.dropdown-arrow {
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
}

.nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: var(--space-sm) 0;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: 1001;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: background-color var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--gray-50);
  color: var(--maroon);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--ink);
  cursor: pointer;
}

/* Hero Section
.hero {
  background: linear-gradient(135deg, var(--maroon) 0%, #6B1515 100%);
  color: var(--white);
  padding: var(--space-3xl) 0;
  text-align: center;
}

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

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--space-2xl);
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
} */

/* Section Styles */
.section {
  padding: var(--space-3xl) 0;
  padding: 2rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--maroon);
  margin-bottom: var(--space-md);
  font-size: 1.8rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

/* Footer Styles */
.footer {
  background-color: var(--ink);
  color: var(--white);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  grid-template-columns: 1fr;
  text-align: center;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--gray-300);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--gray-400);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: transform var(--transition-fast);
  text-decoration: none;
}

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

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

/* Tabs */
.tabs {
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: var(--space-xl);
}

.tab-list {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tab-button {
  background: none;
  border: none;
  padding: var(--space-md) 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.tab-button.active {
  color: var(--maroon);
  border-bottom-color: var(--maroon);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* Form Styles */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--ink);
}

.form-input {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--maroon);
}

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

/* Toast Notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  background-color: #10B981;
  color: var(--white);
}

.toast-error {
  background-color: #EF4444;
  color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.125rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: var(--space-sm) 0 0 var(--space-lg);
    background: transparent;
  }
  
  .dropdown-item {
    padding: var(--space-xs) 0;
    font-size: 0.875rem;
    color: var(--gray-600);
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--space-2xl) 0;
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .tab-list {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .whatsapp-float,
  .btn {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* Focus Styles for Accessibility */
*:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:focus,
.form-input:focus {
  outline: 2px solid var(--maroon);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}



.photos-grid .gallery-item img {
    width: 100%;
    height: 250px; /* fixed uniform height */
    object-fit: cover; /* crops images to fill without distortion */
    border-radius: var(--radius-sm);
}


@media (min-width: 1024px) {
  .photos-grid .gallery-item img {
    height: 300px;
  }
}


/* Main gallery items */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 250px;   /* uniform size for main grid */
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Hover effect */
.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(141, 30, 30, 0.6);
}

/* Preview thumbnails (80px inside white cards) */
.photo-preview img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.photo-preview img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(141, 30, 30, 0.5);
}



/* New Auto Carousel Styles */
.auto-carousel {
    position: relative;
    width: 100%;
    max-width: 1901px;
    height: 625px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Carousel dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}



/* Hero Section with Background Banner */
.hero {
    background: linear-gradient(rgba(141, 30, 30, 0.7), rgba(0, 0, 0, 0.6)), 
                url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 3rem 0;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    color: white;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Hero section responsive adjustments */
@media (max-width: 1920px) {
    .auto-carousel {
        height: calc(100vw * 625 / 1901); /* Maintain aspect ratio */
    }
}

@media (max-width: 768px) {
    .auto-carousel {
        height: 250px;
    }
    .hero {
        height: 350px; /* Adjust height for mobile */
    }

    .hero h1 {
        font-size: 2rem; /* Adjust font size for mobile */
    }

    .hero p {
        font-size: 1rem; /* Adjust paragraph font size for mobile */
    }
}


/* Increase card size and styling */
.card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    padding: 2rem;
    height: 300px; /* Adjust card height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.card div {
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .col-md-3 {
        flex: 1 1 100%; /* Make the cards stack on smaller screens */
        margin-bottom: 2rem;
    }
}


/* Increase the size of the images */
.photos-grid img {
    width: 100%;  /* Ensure the images take full width of the grid item */
    height: 250px; /* Increased height for larger images */
    object-fit: cover;  /* Make sure the images cover the area without distortion */
    border-radius: var(--radius-sm);  /* Round the corners */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .photos-grid img {
        height: 200px; /* Adjust the height for smaller screens */
    }
}
/* Container for all videos */
.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 columns or more on larger screens */
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Each video card */
.video-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Play button */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(141, 30, 30, 0.7); /* Dark semi-transparent background */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Hover effect on play button */
.play-button:hover {
    background-color: rgba(141, 30, 30, 0.9);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Stack columns on smaller screens */
    }

    .video-card video {
        height: 150px; /* Smaller video height on mobile */
    }
}


/* Footer Styles */
.footer {
  background-color: var(--ink);
  color: var(--white);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  grid-template-columns: 1fr;
  text-align: center;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--gray-300);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--gray-400);
}






