@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,400&family=Oswald:wght@500;700&family=Mukta+Malar:wght@400;500;700&display=swap');

:root {
  /* Brand Colors */
  --primary-red: #9B0000;
  --dark-black: #111111;
  --warm-white: #F5F3EF;
  --pure-white: #FFFFFF;
  --muted-gray: #D9D9D9;
  --border-color: #D8D2C8;
  --hover-accent-red: #7A0000;
  --typography-color: #0E1726;

  /* Typography */
  --font-serif: 'Merriweather', serif;
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Oswald', sans-serif;
  --font-tamil: 'Mukta Malar', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --spacing-xxl: 8rem;

  /* Layout */
  --container-width: 1200px;
  --transition-speed: 0.3s;
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */

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

body {
  font-family: var(--font-sans);
  color: var(--typography-color);
  background-color: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.lang-ta {
  font-family: var(--font-tamil);
}

body.lang-ta h1,
body.lang-ta h2,
body.lang-ta h3,
body.lang-ta .hero-headline {
  font-family: var(--font-tamil) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  color: var(--dark-black);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */

.text-huge {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.text-large {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
}

.text-medium {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.text-lead {
  font-size: 1.25rem;
  font-family: var(--font-sans);
  font-weight: 400;
  color: #4a4a4a;
}

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

.text-white {
  color: var(--pure-white);
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.8rem 2rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  text-align: center;
  border-radius: 50px;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--pure-white);
}

.btn-primary:hover {
  background-color: var(--hover-accent-red);
}

.btn-outline {
  background-color: transparent;
  color: var(--dark-black);
  border-color: var(--dark-black);
}

.btn-outline:hover {
  background-color: var(--dark-black);
  color: var(--pure-white);
}

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

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

.btn-outline-white {
  background-color: transparent;
  color: var(--pure-white);
  border-color: var(--pure-white);
}

.btn-outline-white:hover {
  background-color: var(--pure-white);
  color: var(--dark-black);
}

.link-arrow {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.link-arrow:hover {
  color: var(--hover-accent-red);
}

.link-arrow::after {
  content: '→';
  transition: transform var(--transition-speed) ease;
}

.link-arrow:hover::after {
  transform: translateX(5px);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.8rem 0;
  background-color: var(--warm-white);
  border-bottom: 1px solid var(--border-color);
  transition: padding var(--transition-speed) ease;
}

.navbar.scrolled {
  background-color: var(--warm-white);
  padding: 0.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

@media (max-width: 992px) {
  .navbar .container {
    padding: 0 var(--spacing-sm);
  }

  .nav-actions {
    gap: 0.8rem;
  }
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--dark-black);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: 2rem;
  /* Reset margin since big logo is gone */
}

.nav-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.5rem 0;
}

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

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

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -1rem;
  background-color: var(--pure-white);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  list-style: none;
  padding: 1rem 0;
  border-radius: 4px;
  z-index: 1000;
  border-top: 3px solid var(--primary-red);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: var(--dark-black);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.2s, color 0.2s;
  text-transform: none;
  letter-spacing: normal;
}

.dropdown-menu li a:hover {
  background-color: var(--warm-white);
  color: var(--primary-red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-actions .btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
}

.lang-switch {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--dark-black);
  padding: 5px;
}

/* Helper Classes */
.hide-mobile {
  display: flex !important;
}

.show-mobile {
  display: none !important;
}

@media (max-width: 992px) {
  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: flex !important;
  }
}

/* ==========================================================================
   News Ticker
   ========================================================================== */

.news-ticker {
  background-color: var(--primary-red);
  color: var(--pure-white);
  padding: 0.6rem 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.ticker-wrapper {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: ticker 40s linear infinite;
}

.ticker-item {
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
}

.ticker-item::after {
  content: "•";
  margin-left: 3rem;
  opacity: 0.4;
  font-size: 1.2rem;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.news-ticker:hover .ticker-wrapper {
  animation-play-state: paused;
}

/* ==========================================================================
   New Premium Footer
   ========================================================================== */

.footer-new {
  background-color: var(--dark-black);
  color: var(--pure-white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  border-top: none;
}

.footer-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--spacing-xl);
}

.footer-brand-logo {
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--pure-white);
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-form-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--pure-white);
}

.footer-join-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
  max-width: 350px;
}

.footer-input {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  font-family: var(--font-sans);
  font-size: 1rem;
  margin-bottom: -1px;
  /* collapse borders */
  color: var(--pure-white);
}

.footer-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-input:first-child {
  border-radius: 4px 4px 0 0;
}

.footer-input:last-of-type {
  border-radius: 0 0 4px 4px;
  margin-bottom: 1.5rem;
}

.footer-submit-btn {
  align-self: flex-start;
  padding: 0.8rem 2.5rem;
  background-color: var(--pure-white);
  color: var(--dark-black);
  border: none;
}

.footer-submit-btn:hover {
  background-color: var(--primary-red);
  color: var(--pure-white);
}

.footer-legal-text {
  font-size: 0.85rem;
  color: #a0a0a0;
  line-height: 1.6;
  max-width: 400px;
}

.footer-legal-text a {
  color: var(--primary-red);
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.footer-nav-col h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pure-white);
  margin-bottom: 1.5rem;
}

.footer-nav-col a {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #a0a0a0;
  margin-bottom: 1rem;
}

.footer-nav-col a:hover {
  color: var(--primary-red);
  text-decoration: underline;
}

.footer-bottom-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.footer-bottom-links a {
  font-size: 0.95rem;
  color: var(--pure-white);
  font-weight: 500;
}

.footer-bottom-links a:hover {
  text-decoration: underline;
}

.footer-social-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--pure-white);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon-link:hover {
  background-color: var(--primary-red);
  color: var(--pure-white);
  transform: translateY(-3px);
  border-color: var(--primary-red);
  box-shadow: 0 5px 15px rgba(230, 0, 0, 0.3);
}

.social-icon-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-copyright {
  font-size: 0.75rem;
  color: #a0a0a0;
  line-height: 1.8;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

/* Mobile Menu Overlay Styles */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--pure-white);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu-content {
  padding: 2rem;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 3rem;
  color: var(--dark-black);
  cursor: pointer;
  line-height: 1;
}

.mobile-nav-links {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link,
.mobile-nav-label {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-black);
  text-transform: uppercase;
}

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

.mobile-dropdown-items {
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border-left: 2px solid var(--primary-red);
}

.mobile-dropdown-items a {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: #666;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-header {
    text-align: center;
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-brand-title {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
  }

  .footer-legal-text {
    text-align: center;
    padding: 0 1rem;
  }

  .footer-bottom-links {
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand-title {
    font-size: 1.5rem;
  }

  .leader-card {
    flex-direction: column;
  }

  .leader-image-side {
    width: 100%;
    height: 400px;
  }

  .quick-links-grid {
    grid-template-columns: 1fr;
  }

  .hero-collage {
    height: 40vh;
    min-height: 300px;
  }

  .text-huge {
    font-size: 2.5rem;
  }

  .text-large {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .footer-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .footer-nav-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--primary-red);
  }

  .footer-nav-col a {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .hero-collage-content h1 {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Video Play Button & Modal
   ========================================================================== */

.news-img-wrapper {
  cursor: pointer;
  position: relative;
}

.news-img-wrapper .news-img,
.news-img-wrapper img {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-img-wrapper:hover .news-img,
.news-img-wrapper:hover img {
  transform: scale(1.05);
}

.play-overlay {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(155, 0, 0, 0.4);
}

.news-img-wrapper:hover .play-overlay {
  transform: translate(-50%, -50%) scale(1.15) !important;
  background: var(--primary-red) !important;
  box-shadow: 0 0 0 15px rgba(155, 0, 0, 0);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 0 0 rgba(155, 0, 0, 0.7);
  }

  70% {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 0 15px rgba(155, 0, 0, 0);
  }

  100% {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 0 0 rgba(155, 0, 0, 0);
  }
}

/* Global Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.video-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-content {
  width: 90%;
  max-width: 1000px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.video-modal.active .video-modal-content {
  transform: translateY(0);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-modal-close:hover {
  transform: scale(1.2);
  color: var(--primary-red);
}