/* =========================================
   STYLES FROM mag-home.html
   ========================================= */

:root {
  --primary-saffron: #FF9933;
  --primary-red: #D32F2F;
  --primary-gold: #DAA520;
  --light-bg: #FFF8DC;
  --text-dark: #333;
  --text-light: #666;
  --white: #ffffff;
}

/* GLOBAL STYLES & RESET */

/* Flexbox for sticky footer */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

html {
  height: 100%;
  margin: 0;
}

/* Ensure footer sticks to bottom if content is short */
footer {
  margin-top: auto;
}

.container {
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Color Variables */
:root {
  --primary-saffron: #FF9933;
  --primary-red: #C8102E;
  --primary-gold: #FFD700;
  --light-bg: #FFF8DC;
  --white: #ffffff;
  --gray-border: #ddd;
  --gradient-bg: linear-gradient(135deg, #FF9933 0%, #FFD700 100%);
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* HEADER, HERO, FOOTER, CONTACT, GALLERY STYLES */
/* HEADER & NAVBAR STYLES */
header {
  background-color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  /* Premium shadow */
  position: sticky;
  /* Sticky header */
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  /* Reduced padding for sleeker look */
}

/* Logo Sizing */
.logo-container img {
  height: 60px;
  /* Consistent height */
  width: auto;
  transition: transform 0.3s ease;
}

.logo-container:hover img {
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
  font-size: 1.8em;
  cursor: pointer;
  color: var(--primary-saffron);
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
  /* Subtle zoom instead of rotation */
}

#nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

#nav-list li {
  margin-left: 30px;
}

#nav-list li a {
  text-decoration: none;
  color: #333;
  /* Darker text for readability */
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

/* Premium Hover Effect: Underline expands from center */
#nav-list li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-saffron);
  transition: width 0.3s ease, left 0.3s ease;
}

#nav-list li a:hover {
  color: var(--primary-saffron);
}

#nav-list li a:hover::after {
  width: 100%;
  left: 0;
}

.hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 130%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide:nth-child(1) {
  background-image: url('Images/slid-1.jpg');
}

.slide:nth-child(2) {
  background-image: url('Images/slid-2.jpg');
}

.slide:nth-child(3) {
  background-image: url('Images/slid-3.jpg');
}

.slide:nth-child(4) {
  background-image: url('Images/slid-4.jpg');
}

.slide:nth-child(5) {
  background-image: url('Images/slid-5.jpg');
}

.content-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--light-bg);
}

.content-section h2 {
  color: var(--primary-saffron);
  font-size: 2.5em;
  margin-bottom: 20px;
}

.vmh-block {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  gap: 40px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--gray-border);
  transition: opacity 0.5s ease-out;
  opacity: 0;
}

.vmh-block:nth-last-child(2) {
  border-bottom: none;
}

.vmh-content,
.vmh-image-wrap {
  flex: 1;
  padding: 15px;
}

.vmh-image-wrap img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* --- READ MORE TOGGLE STYLES (HOME) --- */
.initial-content {
  margin-bottom: 10px;
}

.more-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.7s ease-in-out, opacity 0.5s ease-in;
  padding-top: 5px;
}

.more-content.active {
  max-height: 500px;
  opacity: 1;
}

.more-content p {
  margin-bottom: 10px;
}

.read-more-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 18px;
  background-color: var(--primary-saffron);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s;
}

.read-more-btn:hover {
  background-color: #e68a2e;
}

/* --- ADDITIONAL STYLES FOR ATTRACTIVENESS --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--gradient-bg);
  color: var(--white);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-item h3 {
  color: var(--primary-saffron);
  margin-bottom: 10px;
}

.feature-item i {
  font-size: 2em;
  color: var(--primary-red);
  margin-bottom: 15px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: filter 0.3s;
}

/* Clean up old hover rule if it duplicates */
.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.gallery-section h2 {
  text-align: center;
  color: var(--primary-saffron);
  font-size: 2.2rem;
  margin-bottom: 30px;
  font-weight: 700;
}

.gallery-footer {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.see-more-btn {
  padding: 12px 30px;
  background: var(--primary-saffron);
  color: #fff;
  /* Ensure text is white */
  font-weight: 600;
  border: none;
  border-radius: 50px;
  /* Pill shape */
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
  /* Subtle shadow matching saffron */
  font-size: 1rem;
}

.see-more-btn:hover {
  background: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(220, 38, 38, 0.4);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  color: var(--white);
  font-size: 1.5em;
  transition: transform 0.3s;
}

.social-links a:hover {
  transform: scale(1.2);
}

.vmh-block.reverse {
  flex-direction: row-reverse;
}

/* --- GALLERY STYLES --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4/3;
  /* Enforce consistent aspect ratio */
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Optional: Add caption on hover */
.gallery-item::after {
  content: attr(data-title);
  /* You can add data-title attribute to HTML later if needed */
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Hidden state: Managed by JS now */

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }
}

/* -------------------------------------- */
/* TEAM SECTION CSS */
/* -------------------------------------- */

/* Main Container & Group Spacing */
.team-section-container {
  /* This div replaces the 'main-container' and sets internal padding */
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 15px;
}

.team-group {
  margin-bottom: 3.5rem;
  /* Space between Leadership and Trustees sections */
}

.section-title {
  font-size: 1.875rem;
  /* H2 equivalent */
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: #1f2937;
}

/* -------------------------------------- */
/* Grid Structure */
/* -------------------------------------- */

.team-grid-4 {
  /* Grid for 4 members (Leadership) */
  display: grid;
  grid-template-columns: 1fr;
  /* Mobile: 1 column */
  gap: 1.5rem;
}

.team-grid-5 {
  /* Grid for 5 members (Trustees) */
  display: grid;
  grid-template-columns: 1fr;
  /* Mobile: 1 column */
  gap: 1.5rem;
}

/* Explicitly force 1 column on phones/mobile */
@media (max-width: 767px) {

  .team-grid-4,
  .team-grid-5 {
    grid-template-columns: 1fr !important;
  }
}

/* Medium devices (992px to 1199px) - 2 columns for both grids */
@media (min-width: 992px) and (max-width: 1199px) {

  .team-grid-4,
  .team-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large devices (1200px and up) */
@media (min-width: 1200px) {
  .team-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns for Leadership */
    gap: 2rem;
  }

  .team-grid-5 {
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns for Trustees (best fit for 5) */
    gap: 2rem;
  }
}

/* -------------------------------------- */
/* Card Styles */
/* -------------------------------------- */

.team-member-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15),
    0 8px 10px -6px rgba(0, 0, 0, 0.08);
}

.image-wrapper {
  position: relative;
  overflow: hidden;
}

.team-member-img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  display: block;
}

.social-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background-image: linear-gradient(to top,
      rgba(0, 0, 0, 0.7),
      rgba(0, 0, 0, 0));
}

.card-content {
  padding: 1.5rem;
}

.member-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.member-title {
  color: #dc2626;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.member-bio {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* --- SCROLL ANIMATION STYLES --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.fade-in-left {
  transform: translateX(-50px);
}

.animate-on-scroll.fade-in-left.animate {
  transform: translateX(0);
}

.animate-on-scroll.fade-in-right {
  transform: translateX(50px);
}

.animate-on-scroll.fade-in-right.animate {
  transform: translateX(0);
}

.animate-on-scroll.zoom-in {
  transform: scale(0.8);
}

.animate-on-scroll.zoom-in.animate {
  transform: scale(1);
}

.animate-on-scroll.delay-1 {
  transition-delay: 0.2s;
}

.animate-on-scroll.delay-2 {
  transition-delay: 0.4s;
}

.animate-on-scroll.delay-3 {
  transition-delay: 0.6s;
}

.animate-on-scroll.delay-4 {
  transition-delay: 0.8s;
}

.animate-on-scroll.delay-5 {
  transition-delay: 1s;
}

.animate-on-scroll.delay-6 {
  transition-delay: 1.2s;
}

/* RESPONSIVENESS for Home */
/* RESPONSIVENESS for Home */
@media (max-width: 992px) {

  .team-grid-4,
  .team-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }

  /* Mobile/Tablet Navigation Styles */
  #nav-list {
    display: flex;
    flex-direction: column !important;
    position: fixed;
    top: 80px;
    right: -100%;
    width: 60%;
    /* Slightly smaller for tablets */
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 30px;
    align-items: flex-start;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    left: auto;
  }

  /* Active State for Menu */
  #nav-list.nav-active {
    right: 0;
  }

  #nav-list li {
    margin: 15px 0;
    width: 100%;
  }

  #nav-list li a {
    font-size: 1.1em;
    display: block;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
  }

  .footer-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .footer-section {
    flex: 1 1 45%;
    /* Two columns on tablet */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  #nav-list {
    width: 75%;
    /* Wider menu on phone */
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    /* Center align for mobile */
  }

  .footer-section {
    flex: 1 1 100%;
    padding: 0 20px;
    /* Add padding for readability on small screens */
    margin-bottom: 30px;
    /* Consitent spacing */
  }

  .footer-section h1 {
    font-size: 1.5rem;
    /* Slightly larger headings for mobile */
    margin-bottom: 15px;
    /* Adjust margin */
  }

  .footer-section h1::after {
    left: 50%;
    transform: translateX(-50%);
    /* Centered underline */
  }

  .footer-section p,
  .footer-section ul li a {
    font-size: 1rem;
    /* Increase font size for readability */
    line-height: 1.6;
  }

  .social-icons {
    justify-content: center;
  }

  .vmh-block,
  .vmh-block.reverse {
    flex-direction: column;
    margin-bottom: 40px;
  }

  .hero {
    height: 60vh;
  }

  .container {
    width: 90%;
  }
}

/* =========================================
   FOOTER STYLES (Added)
   ========================================= */

footer {
  /* Let style.css handle background and color */
  /* background-color: #1a1a1a; */
  /* color: #ffffff; */
  /* padding: 40px 0 0; */
  /* Reduced padding, bottom handled by footer-bottom */
  margin-bottom: 0;
  /* font-family: 'Poppins', sans-serif; */
  margin-top: auto;
  overflow: hidden;
  /* Fix margin collapse */
}

/* Footer styles restored to match Magdharm theme */
.footer-main-heading {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
}

.footer-main-heading h2 {
  color: var(--primary-saffron);
  font-size: 1.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  padding: 0 15px;
  margin-bottom: 20px;
}

.footer-section h1 {
  font-size: 1.2rem;
  color: var(--primary-gold);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-red);
}

/* Mobile center align for footer heading underline */
@media (max-width: 768px) {
  .footer-section h1::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: #e0e0e0;
  /* Lighter color for better readability */
  text-decoration: none;
  transition: color 0.3s, padding-left 0.3s;
  font-size: 0.95rem;
}

.footer-section ul li a:hover {
  color: var(--primary-saffron);
  padding-left: 5px;
}

.footer-section p {
  color: #e0e0e0;
  /* Match link color */
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-section p a {
  color: var(--primary-saffron);
  text-decoration: none;
}

/* Social Icons */
.connect-section .social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #333;
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  transform: translateY(-3px);
}

.social-icons a.youtube:hover {
  background-color: #FF0000;
}

.social-icons a.facebook:hover {
  background-color: #1877F2;
}

.social-icons a.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icons a.x:hover {
  background-color: #000;
  border: 1px solid #333;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  /* Lighter border for blue background */
  padding-top: 20px;
  margin-top: 40px;
  color: #e0e0e0;
  /* Light text for readability */
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 20px;
}

@media (max-width: 480px) {
  .footer-bottom {
    font-size: 0.8rem;
  }
}

.footer-bottom span {
  color: var(--primary-saffron);
}

/* =========================================
   STYLES FROM mag-about.html & mag-admnistration.html
   (Renamed to avoid conflicts)
   ========================================= */

/* Use slightly specific selectors to avoid affecting Home if imported globally */
/* Note: body styles here might conflict. Home has its own resets.
   I'll include these but rely on page specific structure. */

.mag-content-section {
  /* Renamed from .content-section */
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.content-box {
  display: flex;
  background-color: #f4f4f4;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-items: stretch;
  min-height: 300px;
}

.content-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.image-container,
.text-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-container {
  padding: 30px;
}

.image-container {
  padding: 0;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.box-title {
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.8em;
}

.text-container p {
  color: #555;
  margin-bottom: 15px;
  text-align: justify;
}

.reverse-layout {
  flex-direction: row-reverse;
}

.mag-read-more-btn {
  /* Renamed from .read-more-btn */
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 15px;
  font-weight: bold;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.mag-read-more-btn:hover {
  background-color: #0056b3;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {

  .content-box,
  .reverse-layout {
    flex-direction: column;
  }

  .image-container {
    height: 250px;
  }

  .image-container img {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .text-container {
    padding: 20px;
  }

  .content-box {
    min-height: auto;
  }

  .mag-content-section {
    padding: 10px;
    gap: 20px;
  }
}

/* =========================================
   EVENTS PAGE STYLES
   ========================================= */

.events-header {
  text-align: center;
  padding: 100px 20px;
  background-size: cover;
  background-position: center;
  color: white;
  margin-bottom: 40px;
  background-color: #333;
  /* Fallback */
  position: relative;
}

/* Overlay for readability */
.events-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.events-header h1,
.events-header p {
  position: relative;
  z-index: 2;
}

.events-header h1 {
  font-size: 3rem;
  color: var(--primary-saffron);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.events-header p {
  font-size: 1.2rem;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 95%;
  margin: 40px auto;
  padding: 0 40px;
}

.event-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.event-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.1);
}

.event-date-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-saffron);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  min-width: 60px;
}

.event-date-badge .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-date-badge .month {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

.event-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--primary-red);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.event-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 15px;
  line-height: 1.4;
}

.event-details {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  color: #666;
  font-size: 0.95rem;
}

.event-details li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-details li i {
  color: var(--primary-gold);
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.event-description {
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.join-btn {
  background-color: var(--primary-saffron);
  color: white;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 153, 51, 0.3);
}

.join-btn:hover {
  background-color: #e68a00;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 153, 51, 0.4);
}

.share-btn {
  color: #95a5a6;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s;
  background: none;
  border: none;
}

.share-btn:hover {
  color: var(--primary-saffron);
}

/* Responsive Grid */
@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .events-header {
    padding-top: 30px;
  }

  .events-header h1 {
    font-size: 2rem;
  }

  .event-date-badge .year {
    font-size: 0.8rem;
  }
}

/* =========================================
   EVENT DETAILS PAGE
   ========================================= */

.event-details-container {
  max-width: 95%;
  margin: 40px auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.event-detail-section {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

.detail-header {
  background: var(--light-bg);
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
}

.detail-header h2 {
  color: var(--primary-red);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.detail-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-family: 'Poppins', sans-serif;
  color: #555;
  font-weight: 600;
  font-size: 0.9rem;
}

.detail-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-meta i {
  color: var(--primary-saffron);
}

.detail-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
}

.detail-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

.detail-text {
  width: 100%;
}

.detail-text h3 {
  color: var(--primary-saffron);
  font-size: 1.4rem;
  margin-bottom: 10px;
  margin-top: 20px;
}

.detail-text h3:first-child {
  margin-top: 0;
}

.detail-text p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 15px;
}

.detail-text ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 15px;
  color: #444;
}

.detail-text li {
  margin-bottom: 8px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .event-details-container {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   NEW COMPONENTS
   ========================================= */

.event-date-badge .year {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 2px;
}

/* Subscribe Section */
.subscribe-section {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('Images/mag-history.jpg');
  background-size: cover;
  background-attachment: fixed;
  color: white;
  text-align: center;
  padding: 80px 20px;
  margin-top: 60px;
}

.subscribe-content h2 {
  font-size: 2.5rem;
  color: var(--primary-saffron);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.subscribe-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.subscribe-form input {
  flex-grow: 1;
  padding: 15px 25px;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
  outline: none;
}

.subscribe-form button {
  background: var(--primary-saffron);
  color: white;
  border: none;
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 1rem;
}

.subscribe-form button:hover {
  background: #e68a00;
}

/* Fade In Up Animation */
.animate-on-scroll.fade-in-up {
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.8s ease-out;
}

.animate-on-scroll.fade-in-up.animate {
  transform: translateY(0);
  opacity: 1;
}

/* Active Nav State */
#nav-list li a.page-active {
  color: var(--primary-saffron);
  font-weight: 700;
  border-bottom: 2px solid var(--primary-saffron);
}

@media (max-width: 768px) {
  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-form input,
  .subscribe-form button {
    width: 100%;
  }
}

/* --- Content Box Styles Copied from About-Us --- */
.mag-content-section {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 15px;
  /* Added padding for spacing */
}

.content-box {
  display: flex;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-items: stretch;
  min-height: 300px;
  margin-bottom: 0;
  /* Handled by gap */
}

.content-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.image-container,
.text-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-container {
  padding: 30px;
}

.image-container {
  padding: 0;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.box-title {
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.8em;
}

.text-container p {
  color: #555;
  margin-bottom: 15px;
  text-align: justify;
}

.reverse-layout {
  flex-direction: row-reverse;
}

.read-more-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 15px;
  font-weight: bold;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.read-more-btn:hover {
  background-color: #0056b3;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {

  .content-box,
  .reverse-layout {
    flex-direction: column;
  }

  .image-container {
    height: 250px;
  }

  .image-container img {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .text-container {
    padding: 20px;
  }

  .content-box {
    min-height: auto;
  }

  .mag-content-section {
    padding: 10px;
    gap: 20px;
  }
}

/* --- Simple Text Box Styles (Restored) --- */
.simple-text-box {
  max-width: 1500px;
  margin: 40px auto;
  padding: 25px;
  background-color: #ffe1a9;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
  color: #333;
  font-family: Arial, sans-serif;
}

.simple-text-box p {
  margin-top: 0;
  margin-bottom: 1em;
  text-align: justify;
  color: rgb(22, 0, 145);
}

.simple-text-box h3 {
  color: #ff0000;
  margin-top: 0;
  margin-bottom: 0.75em;
  font-size: 1.4em;
  text-align: center;
}

.link-button {
  padding: 10px 20px;
  margin: 10px 0;
  display: inline-block;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  transition: background-color 0.3s ease;
}


/* --- Actions Grid Styles (Card Layout) --- */
.actions-section {
  padding: 60px 0;
  text-align: center;
}

.actions-section h2 {
  font-size: 2.5rem;
  color: #1a56db;
  /* Blue color from screenshot */
  margin-bottom: 40px;
  font-weight: 700;
  text-transform: capitalize;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
  padding: 0 15px;
}

.action-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
}

.action-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.action-img-container {
  height: 220px;
  background-color: #f0f0f0;
  position: relative;
  overflow: hidden;
}

.action-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.action-card:hover .action-img-container img {
  transform: scale(1.05);
  /* Subtle zoom on hover */
}

.action-content {
  padding: 25px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center align text */
}

.action-title {
  font-size: 1.25rem;
  font-weight: 800;
  /* Bold title */
  margin-bottom: 12px;
  color: #333;
}

.action-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

.view-program-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* Space between text and arrow */
  padding: 10px 28px;
  background: linear-gradient(90deg, #2b3a6e 0%, #c44d21 100%);
  /* Blue to Orange Gradient */
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s, filter 0.3s;
  border: none;
}

.view-program-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.view-program-btn i {
  font-size: 0.8rem;
  transition: margin-left 0.3s ease;
}

.view-program-btn:hover i {
  margin-left: 5px;
  /* Arrow moves on hover */
}