/* ============================================
   Viduthalai Chiruthaigal Katchi - Custom Styles
   ============================================ */

:root {
  --vck-blue: #1E90FF;
  --vck-red: #DC143C;
  --vck-gold: #FFD700;
  --vck-dark: #1a1a2e;
  --vck-navy: #0f3460;
  --vck-light: #f8f9fa;
  --font-primary: 'Poppins', sans-serif;
  --font-tamil: 'Noto Sans Tamil', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-tamil), var(--font-primary), sans-serif;
  color: #333;
  line-height: 1.8;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

/* Top Bar */
.top-bar {
  background: var(--vck-dark);
  color: #ccc;
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar a {
  color: #ccc;
  margin-left: 12px;
  font-size: 1rem;
  transition: color 0.3s;
}

.top-bar a:hover {
  color: var(--vck-gold);
}

/* Navigation */
#mainNav {
  background: linear-gradient(135deg, var(--vck-navy) 0%, var(--vck-dark) 100%);
  padding: 14px 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

#mainNav.scrolled {
  padding: 8px 0;
  background: rgba(26, 26, 46, 0.97);
  backdrop-filter: blur(10px);
}

.navbar-brand .brand-tamil {
  font-family: var(--font-tamil);
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--vck-gold);
  font-weight: 700;
}

.navbar-brand .brand-en {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #c8c8c8;
}

.navbar-brand .brand-text {
  min-width: 0;
}

#mainNav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
  padding: 6px 10px;
  flex-shrink: 0;
}

.navbar-logo {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  object-fit: contain;
  transition: width 0.3s ease, height 0.3s ease;
}

#mainNav.scrolled .navbar-logo {
  width: 64px;
  height: 64px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px !important;
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--vck-gold);
  transition: all 0.3s;
  transform: translateX(-50%);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--vck-gold) !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: var(--vck-navy);
}

.hero-carousel {
  background: var(--vck-navy);
}

.hero-carousel .carousel-item {
  background: var(--vck-navy);
}

.hero-slide-img-wrap {
  width: 100%;
  margin: 0;
  line-height: 0;
  background: var(--vck-navy);
}

.hero-slide-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center center;
}

.hero-carousel-indicators {
  margin-bottom: 0.75rem;
  z-index: 3;
}

.hero-carousel-control {
  width: 8%;
  opacity: 0.85;
  z-index: 3;
}

.hero-carousel-control:hover {
  opacity: 1;
}

.min-vh-75 {
  min-height: 75vh;
  display: flex;
  align-items: center;
}

.hero-slide {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-slide-1 {
  background: linear-gradient(135deg, var(--vck-navy) 0%, var(--vck-dark) 50%, #16213e 100%);
}

.hero-slide-2 {
  background: linear-gradient(135deg, var(--vck-blue) 0%, var(--vck-navy) 100%);
}

.hero-slide-3 {
  background: linear-gradient(135deg, var(--vck-red) 0%, var(--vck-dark) 100%);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  font-family: var(--font-tamil);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--vck-gold);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 30px;
  max-width: 600px;
}

.tamil-text {
  font-family: var(--font-tamil);
  font-size: 1.3rem !important;
  color: var(--vck-gold) !important;
}

.hero-flag {
  max-width: 350px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
  animation: float 3s ease-in-out infinite;
}

.hero-leader {
  max-width: 280px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
}

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

.btn-vck-primary {
  background: linear-gradient(135deg, var(--vck-blue), var(--vck-red));
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  transition: all 0.3s;
}

.btn-vck-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 144, 255, 0.4);
  color: #fff;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--vck-blue), var(--vck-red));
  color: #fff;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

/* Section Common */
.section-padding {
  padding: 80px 0;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--vck-blue), var(--vck-red));
  color: #fff;
  padding: 5px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--vck-dark);
  margin-bottom: 10px;
}

.section-desc {
  color: #666;
  font-size: 1rem;
}

/* About Section */
.about-image-wrap {
  width: 100%;
}

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

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 15px;
  background: var(--vck-light);
  border-radius: 10px;
  border-left: 4px solid var(--vck-blue);
  min-width: 0;
}

.about-feature i {
  color: var(--vck-red);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-feature span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

/* Flag Section */
.flag-section {
  background: linear-gradient(135deg, var(--vck-navy), var(--vck-dark));
}

.symbol-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  height: 100%;
  transition: transform 0.3s;
  overflow: hidden;
}

.symbol-card.d-flex > img {
  flex-shrink: 0;
}

.symbol-card.d-flex > div {
  min-width: 0;
  flex: 1 1 auto;
}

.symbol-card.d-flex h4 {
  margin-top: 0;
}

.symbol-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
}

.symbol-card h4 {
  color: var(--vck-gold);
  margin: 15px 0 10px;
  font-weight: 600;
}

.symbol-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.symbol-color {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.blue-color { background: var(--vck-blue); }
.red-color { background: var(--vck-red); }

.symbol-icon {
  font-size: 2.5rem;
  color: #fff;
}

/* Principles */
.principle-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  height: 100%;
  border-top: 4px solid var(--vck-blue);
}

.principle-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-top-color: var(--vck-red);
}

.principle-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--vck-blue), var(--vck-red));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: #fff;
  font-size: 1.5rem;
}

.principle-icon .bi {
  font-family: bootstrap-icons !important;
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
}

.principle-card h5 {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--vck-dark);
}

.principle-card p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

/* Leadership */
.leader-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.leader-photo {
  width: 100%;
  display: block;
}

.leader-info {
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--vck-navy), var(--vck-dark));
}

.leader-info h3 {
  color: var(--vck-gold);
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.leader-role {
  color: #fff;
  font-weight: 600;
  margin: 0;
}

.leader-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin: 5px 0 0;
}

.leader-highlights {
  list-style: none;
  padding: 0;
}

.leader-highlights li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.leader-highlights li i {
  color: var(--vck-blue);
  margin-right: 10px;
}

.mp-card {
  background: var(--vck-light);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--vck-red);
}

.mp-card h5 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--vck-dark);
}

.mp-card h5 i {
  color: var(--vck-blue);
  margin-right: 8px;
}

.mp-card p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--vck-blue), var(--vck-red));
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 5px;
  width: 18px;
  height: 18px;
  background: var(--vck-gold);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--vck-blue);
}

.timeline-year {
  position: absolute;
  left: -30px;
  top: 0;
  background: linear-gradient(135deg, var(--vck-blue), var(--vck-red));
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  transform: translateX(-100%);
  white-space: nowrap;
}

.timeline-content {
  background: #fff;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.timeline-content h5 {
  color: var(--vck-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-content p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* News Cards */
.news-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
  transition: transform 0.3s;
  border-bottom: 3px solid transparent;
}

.news-card:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--vck-red);
}

.news-date {
  display: inline-block;
  background: var(--vck-light);
  color: var(--vck-blue);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.news-card h5 {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--vck-dark);
}

.news-card p {
  font-size: 0.9rem;
  color: #666;
}

.news-link {
  color: var(--vck-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.news-link:hover {
  color: var(--vck-red);
}

/* Gallery */
.gallery-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  height: 220px;
}

.gallery-card img {
  width: 100%;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  padding: 30px 20px 15px;
  transform: translateY(100%);
  transition: transform 0.3s;
  pointer-events: none;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

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

.gallery-overlay h5 {
  font-weight: 600;
  margin-bottom: 5px;
}

.gallery-overlay p {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0;
}

/* Gallery lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.gallery-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.gallery-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #1a1a2e;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background 0.2s, transform 0.2s;
}

.gallery-lightbox-close:hover {
  background: var(--vck-red);
  color: #fff;
  transform: scale(1.1);
}

body.lightbox-open {
  overflow: hidden;
}

body.lightbox-closing .gallery-card {
  pointer-events: none;
}

/* Contact */
.contact-section {
  background: linear-gradient(135deg, var(--vck-navy), var(--vck-dark));
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--vck-gold);
  margin-top: 5px;
}

.contact-item h5 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-item p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.9rem;
  word-break: break-word;
}

.contact-form {
  width: 100%;
}

.contact-form .form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
}

.contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.contact-form .form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--vck-gold);
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.15);
  color: #fff;
}

/* Footer */
.footer {
  background: #0d0d1a;
  padding: 60px 0 20px;
  color: #aaa;
}

.footer h5 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer-text {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-brand-tamil {
  font-family: var(--font-tamil);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

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

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

.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: #aaa;
  margin-right: 10px;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--vck-blue);
  color: #fff;
}

.tamil-footer {
  font-family: var(--font-tamil);
  color: var(--vck-gold) !important;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 30px 0 20px;
}

.copyright {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--vck-blue), var(--vck-red));
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
  .row > [class*="col-"] {
    min-width: 0;
  }

  #mainNav .navbar-mobile-wrap {
    flex-wrap: wrap;
    align-items: center;
  }

  #mainNav .navbar-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 56px);
    margin-right: 0;
  }

  #mainNav .navbar-logo {
    width: 64px;
    height: 64px;
    margin-right: 0.5rem !important;
  }

  #mainNav.scrolled .navbar-logo {
    width: 56px;
    height: 56px;
  }

  #mainNav .navbar-brand .brand-text {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
  }

  #mainNav .navbar-brand .brand-tamil {
    font-size: 0.82rem;
    line-height: 1.3;
    display: block;
    white-space: normal;
    overflow: visible;
    word-break: break-word;
  }

  #mainNav .navbar-brand .brand-en {
    font-size: 0.68rem;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
  }

  #mainNav .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
  }

  .timeline-year {
    position: static;
    transform: none;
    display: inline-block;
    margin-bottom: 10px;
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline-item {
    padding-left: 25px;
  }
}

@media (max-width: 767px) {
  .hero-carousel-control {
    width: 12%;
  }

  .section-padding {
    padding: 50px 0;
  }

  .top-bar {
    font-size: 0.75rem;
    text-align: center;
  }

  .top-bar .row {
    justify-content: center;
  }

  .top-bar .col-md-6:first-child span {
    display: block;
    margin: 0 !important;
    line-height: 1.6;
  }

  .top-bar .col-md-6:last-child {
    display: none;
  }

  .stat-item h3 {
    font-size: 1.8rem;
  }

  .contact-section .container,
  .footer .container,
  .section-padding .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .contact-form .btn-vck-primary {
    width: 100%;
  }

  .back-to-top {
    bottom: 20px;
    right: 16px;
    width: 42px;
    height: 42px;
  }

  .footer-social a {
    margin-bottom: 8px;
  }

  .symbol-card {
    padding: 18px;
  }

  .symbol-card.d-flex {
    align-items: flex-start;
  }

  .symbol-card.d-flex > img {
    width: 56px;
    height: 56px;
  }
}

/* ============================================
   Inner pages (about, principles, etc.)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--vck-navy) 0%, var(--vck-dark) 55%, #162447 100%);
  color: #fff;
  text-align: center;
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(30, 144, 255, 0.18), transparent 60%);
  pointer-events: none;
}

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

.page-breadcrumb {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 20px;
}

.page-breadcrumb a {
  color: var(--vck-gold);
  text-decoration: none;
}

.page-breadcrumb a:hover {
  text-decoration: underline;
}

.page-hero-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.page-hero-title {
  font-family: var(--font-tamil);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--vck-gold);
  margin-bottom: 8px;
}

.page-hero-sub {
  color: #c8c8c8;
  font-size: 1.05rem;
  margin: 0;
}

@media (max-width: 576px) {
  .page-hero {
    padding: 36px 0 40px;
  }

  .page-hero-logo {
    width: 88px;
    height: 88px;
  }
}
