:root {
  --primary-color: #be1e2d;
  /* Maroon from logo */
  --secondary-color: #1a5e3a;
  /* Forest Green from logo */
  --accent-color: #d4af37;
  /* Gold for highlights */
  --text-dark: #1e2a2e;
  --bg-light: #fefcf5;
  --white: #ffffff;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
  scroll-behavior: smooth;
  position: relative;
}

body::before {
  content: "";
  background-image: url('../images/Mahalakshmi.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-attachment: fixed;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  max-width: 500px;
  max-height: 500px;
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
  filter: drop-shadow(0 0 20px rgba(190, 30, 45, 0.1));
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* header & navigation */
.main-header {
  background: #ffffffea;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(218, 165, 32, 0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  flex-wrap: wrap;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo-text h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.logo-text span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  font-weight: 600;
  color: #2c3e2f;
  transition: 0.3s;
  font-size: 1rem;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -6px;
  left: 0;
  background: var(--secondary-color);
  transition: 0.3s;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background: #b8860b;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 3px;
}

/* hero */
.hero {
  background: linear-gradient(115deg, rgba(255, 243, 224, 0.9) 0%, rgba(250, 234, 201, 0.9) 100%), url('../images/company.jpeg');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.05), transparent);
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  gap: 40px;
}

.hero-text {
  flex: 1.2;
}

.hero-badge {
  background: rgba(212, 175, 55, 0.15);
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b47c2e;
  display: inline-block;
  margin-bottom: 20px;
  backdrop-filter: blur(2px);
}

.hero-text h2 {
  font-size: 1.6rem;
  font-weight: 500;
  color: #4a3b1c;
}

.hero-text h1 {
  font-size: 3.4rem;
  font-weight: 800;
  margin: 15px 0;
  line-height: 1.2;
}

.highlight {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 8px;
}

.hero-text p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 32px;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 8px 16px rgba(190, 30, 45, 0.2);
  border: none;
}

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

.btn-outline {
  border: 2px solid #b8860b;
  background: transparent;
  color: #b8860b;
}

.btn-outline:hover {
  background: #b8860b;
  color: white;
  transform: translateY(-3px);
}

.hero-stats {
  flex: 0.8;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-figure {
  flex: 0.7;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-main-img {
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.2));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.stat-card {
  background: rgba(255, 255, 245, 0.9);
  backdrop-filter: blur(4px);
  padding: 18px 24px;
  border-radius: 28px;
  text-align: center;
  min-width: 130px;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #ffe6b3;
}

.stat-card i {
  font-size: 2rem;
  color: #d4af37;
  margin-bottom: 8px;
}

.stat-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
}

/* features section */
.features {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.7);
}

.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading h2 {
  font-size: 2.3rem;
  font-weight: 700;
}

.section-heading h2 span {
  color: var(--primary-color);
}

.heading-line {
  width: 70px;
  height: 4px;
  background: var(--primary-color);
  margin: 12px auto 18px;
  border-radius: 4px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: #fffbf0;
  padding: 28px 22px;
  border-radius: 32px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.02);
  border: 1px solid #f3e5c0;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px -12px rgba(184, 134, 11, 0.2);
  border-color: #d4af37;
}

.feature-icon {
  background: linear-gradient(145deg, #fce4ec, #f8bbd0);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon i {
  font-size: 32px;
  color: var(--primary-color);
}

.feature-card h3 {
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 1.4rem;
}

/* how it works */
.how-it-works {
  background: linear-gradient(120deg, rgba(44, 36, 18, 0.9), rgba(31, 27, 14, 0.9));
  color: #fef5e6;
  padding: 80px 0;
}

.section-heading.light h2 span {
  color: #ffdd88;
}

.heading-line.light-line {
  background: #ffd966;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
}

.step {
  background: rgba(255, 255, 240, 0.08);
  backdrop-filter: blur(4px);
  padding: 28px 20px;
  border-radius: 40px;
  text-align: center;
  width: 220px;
  transition: 0.3s;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.step:hover {
  transform: scale(1.02);
  background: rgba(212, 175, 55, 0.15);
}

.step-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 12px;
}

.step-icon {
  font-size: 2.5rem;
  color: #f7c56e;
  margin: 12px 0;
}

.step h4 {
  font-size: 1.3rem;
  margin: 12px 0;
}

/* motto banner */
.motto-banner {
  background: var(--secondary-color);
  padding: 48px 24px;
  text-align: center;
  color: var(--white);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.motto-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
  opacity: 0.1;
  pointer-events: none;
}

.motto-banner i {
  font-size: 2rem;
  margin-bottom: 12px;
  display: inline-block;
  opacity: 0.8;
}

.motto-banner p {
  font-size: 1.5rem;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 500;
  letter-spacing: -0.2px;
}

/* footer */
footer {
  background: #131007;
  color: #e9e2cf;
  padding-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
}

.footer-about h3,
.footer-links h4,
.footer-legal h4 {
  color: var(--accent-color);
  margin-bottom: 18px;
}

.footer-contact {
  margin: 18px 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.social-icons a {
  background: #2c2412;
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #f5d98f;
  margin-right: 8px;
  transition: 0.2s;
}

.social-icons a:hover {
  background: #d4af37;
  color: #131007;
}

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

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

.footer-links a {
  color: #cfc7b0;
  text-decoration: none;
  transition: 0.2s;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 4px;
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid #2a2416;
  margin-top: 48px;
  font-size: 0.85rem;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.developer-credit {
  font-weight: 600;
  color: #cfc7b0;
}

.developer-credit a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

.developer-credit a:hover {
  color: var(--white);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
  }
}

/* animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, #2c2412, #1f1b0e);
  color: #fff;
  padding: 100px 0 80px;
  text-align: center;
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.page-hero h1 span {
  color: #d4af37;
}

.page-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Plans List */
.plans-list {
  padding: 80px 0;
  background: rgba(253, 250, 242, 0.6);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
}

.plan-card {
  background: #fff;
  border-radius: 24px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #eee;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.plan-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(212, 175, 55, 0.2);
  border-color: #d4af37;
}

.plan-card::after {
  content: 'Click to View Full';
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  background: rgba(212, 175, 55, 0.9);
  color: #fff;
  padding: 8px 0;
  font-size: 0.8rem;
  font-weight: 700;
  transition: 0.3s;
}

.plan-card:hover::after {
  bottom: 0;
}

.plan-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 20px;
}

.plan-card h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #1e2a2e;
}

.plan-card p {
  color: #666;
  font-weight: 500;
}

.plan-details-banner {
  text-align: center;
  margin-top: 60px;
}

.plan-details-banner img {
  max-width: 100%;
  border-radius: 32px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

/* Directors Section - Modern Design */
/* Directors Slider Section */
.directors-section {
  padding: 80px 0;
  background: radial-gradient(circle at top right, rgba(254, 252, 245, 1), rgba(254, 252, 245, 0.5));
}

.director-swiper {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0 60px;
}

.director-slide-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
  background: var(--white);
  padding: 60px;
  border-radius: 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.director-visual {
  position: relative;
}

.director-img-frame {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 24px; /* More standard rounded corners to avoid cutting faces */
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(190, 30, 45, 0.15);
  border: 8px solid var(--white);
  background: #fdfaf2;
  transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-slide-active .director-img-frame {
  border-radius: 50%;
}

.director-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%; /* Higher position to ensure faces at the top are visible */
}

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

.designation {
  display: inline-block;
  padding: 8px 20px;
  background: var(--bg-light);
  color: var(--secondary-color);
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(26, 94, 58, 0.1);
}

.director-info h3 {
  font-size: 2.8rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.qualification {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 25px;
  display: block;
}

.bio {
  margin-bottom: 35px;
  border-left: 4px solid var(--accent-color);
  padding-left: 25px;
}

.bio p {
  line-height: 1.8;
  color: #444;
  font-size: 1.1rem;
}

.director-social {
  display: flex;
  gap: 15px;
}

.director-social a {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--text-dark);
  text-decoration: none;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-size: 1.1rem;
}

.director-social a:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(190, 30, 45, 0.3);
}

/* Swiper Customization */
.swiper-button-next, .swiper-button-prev {
  color: var(--primary-color) !important;
  background: var(--white);
  width: 55px !important;
  height: 55px !important;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
  background: var(--primary-color);
  color: #fff !important;
}

.swiper-button-next::after, .swiper-button-prev::after {
  font-size: 22px !important;
  font-weight: 900;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #ccc;
  opacity: 1;
  transition: 0.3s;
}

.swiper-pagination-bullet-active {
  background: var(--primary-color) !important;
  width: 30px;
  border-radius: 10px;
}

@media (max-width: 992px) {
  .director-slide-content {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .director-slide-content {
    padding: 30px;
    text-align: center;
  }
  .director-info {
    text-align: center;
  }
  .director-social {
    justify-content: center;
  }
  .director-visual {
    max-width: 250px;
    margin: 0 auto;
  }
  .bio {
    border-left: none;
    border-top: 3px solid var(--accent-color);
    padding-left: 0;
    padding-top: 20px;
  }
  .director-info h3 {
    font-size: 2.2rem;
  }
  .swiper-button-next, .swiper-button-prev {
    display: none !important;
  }
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background: rgba(255, 251, 245, 0.7);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info-card {
  background: #1e2a2e;
  color: #fff;
  padding: 50px;
  border-radius: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.info-item i {
  font-size: 1.5rem;
  color: #d4af37;
  margin-top: 5px;
}

.info-item h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.info-item p {
  opacity: 0.8;
  line-height: 1.6;
}

.contact-form-container {
  background: #fff;
  padding: 50px;
  border-radius: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.contact-form .form-group {
  margin-bottom: 25px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #e0dbcc;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: #fefcf9;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #d4af37;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
  padding: 18px;
}

/* Detailed Plans Table */
.detailed-plans {
  margin-top: 80px;
}

.table-container {
  overflow-x: auto;
  background: var(--white);
  padding: 30px;
  border-radius: 32px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

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

.premium-table th {
  background: var(--bg-light);
  color: var(--primary-color);
  padding: 20px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--primary-color);
}

.premium-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1rem;
  color: #444;
}

.premium-table tr:hover {
  background: #fffcf5;
}

.premium-table td strong {
  color: var(--primary-color);
}

/* Highlights & Terms */
.extra-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
}

.highlights-box,
.terms-box {
  background: var(--white);
  border-radius: 32px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.box-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.box-header i {
  font-size: 1.8rem;
  color: var(--accent-color);
}

.box-header h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
}

.highlights-list {
  list-style: none;
}

.highlights-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

.highlights-list i {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.terms-content p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .extra-details {
    grid-template-columns: 1fr;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.modal-content-container {
  position: relative;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  max-width: 900px;
}

.modal-content {
  margin: auto;
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
  animation: zoom 0.4s;
}

#modalCaption {
  margin: auto;
  display: block;
  width: 80%;
  text-align: center;
  color: #fff;
  padding: 20px 0;
  font-size: 1.5rem;
  font-weight: 700;
}

@keyframes zoom {
  from {
    transform: scale(0.7);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #f1f1f1;
  font-size: 50px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2100;
}

.modal-close:hover {
  color: #d4af37;
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  transition: 0.3s;
  z-index: 2200;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-prev:hover,
.modal-next:hover {
  background: var(--primary-color);
  color: white;
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

@media only screen and (max-width: 700px) {
  .modal-content {
    width: 95%;
  }
}

/* responsive */
@media (max-width: 960px) {
  .hero-text h1 {
    font-size: 2.4rem;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background: #fffbf0;
    width: 80%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 32px;
    border-radius: 32px;
    gap: 20px;
  }

  .nav-menu.active {
    left: 5%;
  }

  .hamburger {
    display: flex;
  }

  .hero-content {
    flex-direction: column;
  }

  .steps {
    gap: 24px;
  }

  .motto-banner p {
    font-size: 1.2rem;
  }
}

/* Plan Tables (page specific) */
.table-wrapper {
  overflow-x: auto;
  margin: 40px 0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

.chit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.chit-table th {
  background: #d4af37;
  color: #1f2c1c;
  padding: 14px 12px;
  font-weight: 700;
}

.chit-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #f0e2c0;
  text-align: center;
}

.chit-table tr:hover {
  background: #fff7e8;
}

.page-title {
  text-align: center;
  margin: 40px 0 20px;
}

.plan-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin: 50px 0;
}

.plan-card {
  background: #fef9ef;
  border-radius: 32px;
  padding: 20px 32px;
  text-align: center;
  width: 220px;
  border: 1px solid #eadbbd;
  transition: all 0.2s;
}

.plan-card h3 {
  font-size: 1.8rem;
  color: #b47c2e;
}

.director-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin: 60px 0;
}

.director-card {
  background: white;
  border-radius: 48px;
  padding: 30px 20px;
  text-align: center;
  width: 260px;
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.director-card:hover {
  transform: translateY(-10px);
}

.director-img {
  width: 140px;
  height: 140px;
  background: linear-gradient(145deg, #eeddaa, #d4af37);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.8rem;
  font-weight: bold;
  color: #3a2b1c;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.contact-info {
  background: #ffffffdb;
  border-radius: 48px;
  padding: 40px;
  margin: 40px auto;
  text-align: center;
  max-width: 700px;
}

/* Map Section */
.map-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.map-container {
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.05);
  line-height: 0;
}

/* Preloader Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  z-index: 10;
}

.loader-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 5px solid rgba(190, 30, 45, 0.1);
  border-top-color: var(--primary-color);
  border-bottom-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

.loader-content p {
  margin-top: 30px;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.1rem;
}

.loader-content span {
  margin-top: 10px;
  font-weight: 600;
  color: var(--secondary-color);
  font-size: 0.9rem;
  animation: pulse-slogan 2s infinite ease-in-out;
}

.slogan-tamil {
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  margin-bottom: 5px;
  line-height: 1.4;
}

@keyframes pulse-slogan {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes zoom {
  from {transform:scale(0.7); opacity: 0;}
  to {transform:scale(1); opacity: 1;}
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128c7e;
  color: #FFF;
}

@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 25px;
  }
}