:root {
  --primary-color: #D32F2F;
  --primary-dark: #B71C1C;
  --primary-light: #FFEBEE;
  --text-dark: #1F2937;
  --text-light: #6B7280;
  --bg-light: #F9FAFB;
  --white: #FFFFFF;
  --black: #000000;
  --transition: all 0.3s ease;
  --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);
  --nav-bg: #ffffff;

}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

p {
  margin-bottom: 1rem;
}

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

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

.text-primary {
  color: var(--primary-color);
}

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

.bg-light {
  background-color: var(--bg-light);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: #0157A6;
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(1, 87, 166, 0.39);
}

.btn-primary:hover {
  background-color: #014380;
  /* A darker shade for hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1, 87, 166, 0.23);
  color: var(--white);
}

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

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

.section {
  padding: 5rem 0;
}

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

.navbar .container {
  max-width: 1400px;
  width: 95%;
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  /* Space between logo image and text */
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.brand-logo {
  height: 100px;
  /* Reduced slightly from 120px to prevent layout pushing */
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  /* Optional: smooths out image edges */
}

.navbar-brand i {
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 8px 4px;
  transition: var(--transition);
  position: relative;
}

/* Hover & Active Effects */
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

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

.nav-links a:hover::after {
  width: 100%;
  background-color: var(--primary-color);
}

.nav-links a.active::after {
  width: 100%;
  background-color: #0157A6;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a.active {
  color: #0157A6;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/SCB Chithara HO.jpeg') center/cover no-repeat;
  opacity: 0.4;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
  animation: slideUp 0.8s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-title span {
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Accordion Services Page */
.service-category {
    margin-bottom: 3.5rem;
}

.category-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.accordion-header:hover {
    background: var(--bg-light);
}

.accordion-header .toggle-icon {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.accordion-item.active .accordion-header {
    background: var(--bg-light);
    color: var(--primary-color);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.accordion-item.active .toggle-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-body {
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.service-img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .accordion-body {
        flex-direction: column;
    }
    .service-img {
        width: 100%;
        height: auto;
    }
}

/* Services Overview (Home) */
/* Services Overview (Home) - Standard Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  background: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card p {
  flex-grow: 1;
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

/* Distinct Card Colors */
/* Card 1: #00ACEF */
.service-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(0, 172, 239, 0.1) 0%, #ffffff 100%);
  border-top: 4px solid #00ACEF;
}

.service-card:nth-child(1) .service-icon {
  background-color: rgba(0, 172, 239, 0.15);
  color: #00ACEF;
}

.service-card:nth-child(1):hover .service-icon {
  background-color: #00ACEF;
  color: white;
}

.service-card:nth-child(1) h3 {
  color: #00ACEF;
}

/* Card 2: Primary Color */
.service-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.1) 0%, #ffffff 100%);
  border-top: 4px solid var(--primary-color);
}

.service-card:nth-child(2) .service-icon {
  background-color: rgba(211, 47, 47, 0.15);
  color: var(--primary-color);
}

.service-card:nth-child(2):hover .service-icon {
  background-color: var(--primary-color);
  color: white;
}

.service-card:nth-child(2) h3 {
  color: var(--primary-color);
}

/* Card 3: #0157A6 */
.service-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(1, 87, 166, 0.1) 0%, #ffffff 100%);
  border-top: 4px solid #0157A6;
}

.service-card:nth-child(3) .service-icon {
  background-color: rgba(1, 87, 166, 0.15);
  color: #0157A6;
}

.service-card:nth-child(3):hover .service-icon {
  background-color: #0157A6;
  color: white;
}

.service-card:nth-child(3) h3 {
  color: #0157A6;
}

/* Footer */
.footer {
  background-color: #111827;
  color: var(--white);
  padding: 2.5rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #9CA3AF;
}

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

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9CA3AF;
  font-size: 0.875rem;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* Mobile Menu */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-md);
    gap: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

/* Page Headers */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 6rem 0 4rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(211, 47, 47, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  color: var(--white);
  margin: 0;
  transform: translateY(20px);
  transition: transform 0.3s ease 0.1s;
}

.gallery-item:hover .gallery-overlay h3 {
  transform: translateY(0);
}

/* About Page */
.info-blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 1rem;
}

.info-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid #0052A6;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 82, 166, 0.05), rgba(231, 83, 83, 0.05));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.info-card:hover::before {
  opacity: 1;
}

.info-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 82, 166, 0.15);
  border-left-color: #e75353;
}

.info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.info-card p {
  text-align: justify;
  line-height: 1.8;
  margin-bottom: 0;
}

/* Animated Gradient Text */
.animated-gradient-text {
  background: linear-gradient(270deg, #0052A6, #e75353, #00ACEF, #0052A6);
  background-size: 300% 300%;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShine 6s ease infinite;
}

@keyframes gradientShine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 4px solid var(--primary-color);
  border-radius: 20px;
  transform: translate(15px, 15px);
  z-index: -1;
}

/* Team Section */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-bottom: 2rem;
}

.team-member {
  flex: 1 1 250px;
  max-width: 280px;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  text-align: center;
  position: relative;
  padding-bottom: 2rem;
  z-index: 1;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(211, 47, 47, 0.15);
}

.team-card-header {
  height: 120px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.team-card-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
}

.team-image {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 5px solid var(--white);
  background-color: var(--bg-light);
  margin: -65px auto 1rem;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.4s ease;
}

.team-member:hover .team-image {
  transform: scale(1.05);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-image i {
  font-size: 3.5rem;
  color: var(--primary-color);
  opacity: 0.8;
}

.team-info {
  padding: 0 1.5rem;
}

.team-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
  font-weight: 700;
}

.team-info p {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 1.25rem;
}

.team-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.team-social a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

@media (max-width: 768px) {

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .footer-col .navbar-brand {
    justify-content: center;
  }

  .footer-col .footer-links li {
    justify-content: center;
  }

  .footer-col .social-links {
    justify-content: center;
  }

  F .footer-col .footer-links li div {
    text-align: center;
  }
}

/* Responsive Breakdown (Tablets & Mobile) */
@media (max-width: 992px) {
  .brand-text {
    font-size: 1.3rem;
    /* Scales down text slightly on medium screens */
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    white-space: normal;
    gap: 10px;
    max-width: calc(100% - 45px);
  }

  .brand-logo {
    height: 60px;
  }

  .brand-text {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--nav-bg);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    /* Toggle this class with JavaScript (e.g., .show) */
  }

  /* Target this class via JS when hamburger is clicked */
  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-links a::after {
    display: none;
    /* Disable underline effect on mobile */
  }
}

/* Animations for Auditorium Section */
@keyframes slideInRightCustom {
  from {
    opacity: 0;
    transform: translateX(80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animated-slide-in-right {
  animation: slideInRightCustom 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.booking-glass-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 45px 80px rgba(0, 0, 0, 0.7) !important;
}