:root {
  --gathala-red: #D31111;
  --gathala-red-dark: #a80d0d;
  --gathala-blue: #005696;
  --gathala-blue-dark: #004578;
  --gathala-black: #1a1a1a;
  --gathala-gray: #6c757d;
  --gathala-light: #f8f9fa;
  --gathala-white: #ffffff;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gathala-black);
  background: var(--gathala-white);
  line-height: 1.6;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

.text-red { color: var(--gathala-red) !important; }
.text-blue { color: var(--gathala-blue) !important; }

/* Top Bar */
.top-bar {
  background: var(--gathala-black);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  padding: 0.45rem 0;
}

.top-bar-info span,
.top-bar-reg span {
  margin-right: 1.25rem;
}

.top-bar i {
  color: var(--gathala-red);
  margin-right: 0.35rem;
}

/* Header */
.site-header {
  background: var(--gathala-white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  z-index: 1030;
}

.site-header .navbar {
  padding: 0.65rem 0;
}

.brand-logo {
  width: 56px;
  height: 56px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--gathala-red);
  letter-spacing: 0.5px;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--gathala-gray);
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gathala-black) !important;
  padding: 0.5rem 0.85rem !important;
  transition: color 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gathala-red) !important;
}

.btn-nav-cta {
  background: var(--gathala-red) !important;
  color: var(--gathala-white) !important;
  border-radius: 4px;
  padding: 0.45rem 1.1rem !important;
}

.btn-nav-cta:hover {
  background: var(--gathala-red-dark) !important;
  color: var(--gathala-white) !important;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 6px;
}

.dropdown-item {
  font-size: 0.88rem;
  padding: 0.55rem 1.25rem;
}

.dropdown-item:hover {
  background: rgba(211,17,17,0.08);
  color: var(--gathala-red);
}

.navbar-toggler {
  border-color: var(--gathala-red);
}

.navbar-toggler-icon {
  filter: invert(14%) sepia(93%) saturate(5000%) hue-rotate(353deg);
}

/* Hero Section - Home */
.home-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,86,150,0.92) 0%, rgba(211,17,17,0.88) 100%);
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background: url('/images/banner.png') center/cover no-repeat;
  opacity: 0.15;
}

.home-hero-shape {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.05);
  transform: rotate(45deg);
}

.home-hero-shape.top-right {
  top: -80px;
  right: -40px;
}

.home-hero-shape.bottom-left {
  bottom: -60px;
  left: -60px;
  background: rgba(0,0,0,0.15);
}

.home-hero .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gathala-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: rgba(255,255,255,0.95);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  margin-bottom: 2rem;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 1rem 0 1.5rem;
}

.hero-divider .divider-red,
.hero-divider .divider-black {
  height: 3px;
  width: 60px;
}

.hero-divider .divider-red { background: var(--gathala-red); }
.hero-divider .divider-black { background: var(--gathala-black); }

.hero-divider .divider-dot {
  width: 8px;
  height: 8px;
  background: var(--gathala-black);
  border-radius: 50%;
}

.home-hero .hero-divider .divider-red { background: var(--gathala-white); }
.home-hero .hero-divider .divider-black { background: rgba(255,255,255,0.6); }
.home-hero .hero-divider .divider-dot { background: var(--gathala-white); }

.btn-gathala {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  transition: all 0.25s;
}

.btn-gathala-primary {
  background: var(--gathala-red);
  color: var(--gathala-white);
  border: 2px solid var(--gathala-red);
}

.btn-gathala-primary:hover {
  background: var(--gathala-red-dark);
  border-color: var(--gathala-red-dark);
  color: var(--gathala-white);
  transform: translateY(-2px);
}

.btn-gathala-outline {
  background: transparent;
  color: var(--gathala-white);
  border: 2px solid var(--gathala-white);
}

.btn-gathala-outline:hover {
  background: var(--gathala-white);
  color: var(--gathala-red);
}

.btn-gathala-blue {
  background: var(--gathala-blue);
  color: var(--gathala-white);
  border: 2px solid var(--gathala-blue);
}

.btn-gathala-blue:hover {
  background: var(--gathala-blue-dark);
  border-color: var(--gathala-blue-dark);
  color: var(--gathala-white);
}

/* Page Hero */
.page-hero {
  position: relative;
  padding: 3.5rem 0;
  background: linear-gradient(135deg, var(--gathala-blue) 0%, var(--gathala-red) 100%);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: url('/images/banner.png') center/cover no-repeat;
  opacity: 0.1;
}

.page-hero-content h1 {
  color: var(--gathala-white);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.page-hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* Section Styles */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--gathala-light);
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--gathala-black);
  text-transform: uppercase;
}

.section-heading .subtitle {
  color: var(--gathala-gray);
  max-width: 600px;
  margin: 0.75rem auto 0;
}

.section-heading .heading-line {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.section-heading .heading-line span:first-child {
  width: 50px;
  height: 3px;
  background: var(--gathala-red);
}

.section-heading .heading-line span:nth-child(2) {
  width: 8px;
  height: 8px;
  background: var(--gathala-black);
  border-radius: 50%;
  margin: 0 4px;
}

.section-heading .heading-line span:last-child {
  width: 50px;
  height: 3px;
  background: var(--gathala-black);
}

/* Feature Cards */
.feature-card {
  background: var(--gathala-white);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid var(--gathala-red);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.feature-card.blue-border { border-top-color: var(--gathala-blue); }

.feature-card .icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: rgba(211,17,17,0.1);
  color: var(--gathala-red);
}

.feature-card.blue-border .icon {
  background: rgba(0,86,150,0.1);
  color: var(--gathala-blue);
}

.feature-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--gathala-gray);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* Stats */
.stats-section {
  background: var(--gathala-black);
  padding: 3.5rem 0;
}

.stat-item {
  text-align: center;
  color: var(--gathala-white);
}

.stat-item .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gathala-red);
  line-height: 1;
}

.stat-item .label {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 0.5rem;
}

/* Mission Vision */
.mv-card {
  background: var(--gathala-white);
  border-radius: 8px;
  padding: 2.5rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

.mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gathala-red);
}

.mv-card.vision::before {
  background: var(--gathala-blue);
}

.mv-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.mv-card.vision h3 { color: var(--gathala-blue); }
.mv-card:not(.vision) h3 { color: var(--gathala-red); }

/* Program List */
.program-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--gathala-white);
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}

.program-item:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.program-item .program-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(211,17,17,0.1);
  color: var(--gathala-red);
  font-size: 1.25rem;
}

.program-item h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.program-item p {
  font-size: 0.88rem;
  color: var(--gathala-gray);
  margin: 0;
}

/* Testimonials */
.testimonial-card {
  background: var(--gathala-white);
  border-radius: 8px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: rgba(211,17,17,0.15);
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-card .quote {
  font-style: italic;
  color: var(--gathala-gray);
  margin-bottom: 1.25rem;
  padding-top: 1.5rem;
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--gathala-black);
}

.testimonial-card .role {
  font-size: 0.85rem;
  color: var(--gathala-red);
}

/* Job Cards */
.job-card {
  background: var(--gathala-white);
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.job-card:hover {
  border-color: var(--gathala-red);
  box-shadow: 0 4px 16px rgba(211,17,17,0.1);
}

.job-card h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.job-card .badge {
  font-weight: 600;
  font-size: 0.75rem;
}

.badge-gathala {
  background: rgba(211,17,17,0.1);
  color: var(--gathala-red);
}

.badge-blue {
  background: rgba(0,86,150,0.1);
  color: var(--gathala-blue);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--gathala-blue) 0%, var(--gathala-red) 100%);
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gathala-white);
  opacity: 0;
  transition: opacity 0.3s;
  padding: 1rem;
  text-align: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.gallery-item .gallery-label {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Forms */
.form-section {
  background: var(--gathala-white);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gathala-black);
}

.form-control,
.form-select {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gathala-red);
  box-shadow: 0 0 0 0.2rem rgba(211,17,17,0.15);
}

.alert-success-custom {
  background: rgba(0,86,150,0.08);
  border: 1px solid var(--gathala-blue);
  color: var(--gathala-blue-dark);
  border-radius: 6px;
  padding: 1rem 1.25rem;
}

/* Partner logos */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.partner-item {
  background: var(--gathala-white);
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.25rem 2rem;
  font-weight: 700;
  color: var(--gathala-gray);
  font-size: 0.9rem;
  min-width: 140px;
  text-align: center;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--gathala-red) 0%, var(--gathala-red-dark) 100%);
  padding: 3.5rem 0;
  text-align: center;
  color: var(--gathala-white);
}

.cta-banner h2 {
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* Map placeholder */
.map-placeholder {
  background: var(--gathala-light);
  border-radius: 8px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #dee2e6;
  color: var(--gathala-gray);
}

.map-placeholder i {
  font-size: 3rem;
  color: var(--gathala-red);
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #0f172a, #1e293b, #553333);
    /*  background: var(--gathala-black);*/
    color: rgba(255,255,255,0.8);
    position: relative;
}

.footer-accent {
  height: 8px;
  background: linear-gradient(45deg, var(--gathala-red) 50%, var(--gathala-blue) 50%);
/*  height: 4px;
  background: linear-gradient(90deg, var(--gathala-red) 50%, var(--gathala-blue) 50%);*/
}

.footer-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 0.75rem;
}

.footer-brand h5 {
  color: var(--gathala-white);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.footer-desc {
  font-size: 0.88rem;
  opacity: 0.75;
}

.footer-tagline {
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-heading {
  color: var(--gathala-white);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gathala-red);
  display: inline-block;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gathala-red);
}

.footer-contact li {
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-contact i {
  color: var(--gathala-red);
  margin-top: 3px;
}

.footer-reg small {
  display: block;
  opacity: 0.6;
  font-size: 0.78rem;
}

.footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 1rem 0;
  font-size: 0.82rem;
  opacity: 0.7;
}

/* About intro */
.about-intro-img {
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  width: 100%;
}

.about-highlight {
  border-left: 4px solid var(--gathala-red);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

/* Responsive */
@media (max-width: 991px) {
  .top-bar-reg {
    display: none;
  }

  .home-hero {
    min-height: 420px;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 576px) {
  .top-bar-info span {
    display: block;
    margin-bottom: 0.25rem;
  }

  .brand-text {
    display: none;
  }
}
