/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #2b2b2b;
  background-color: #ffffff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Brand Navigation */
header {
  background-color: #1a237e;
  color: #ffffff;
}

.brand {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  background-color: #ffffff;
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #1a237e;
}

.logo-img {
  height: 60px;
  width: auto;
  border-radius: 50%;
}

.title-container {
  display: flex;
  flex-direction: column;
}

.title-container .tamil {
  font-size: 1.4rem;
  font-weight: 700;
  color: #800020;
}

.title-container strong {
  font-size: 1.2rem;
  color: #1a237e;
}

.title-container small {
  font-size: 0.85rem;
  color: #666;
}

nav {
  display: flex;
  flex-wrap: wrap;
  background-color: #1a237e;
  padding: 0 20px;
}

nav a {
  color: #ffffff;
  padding: 12px 18px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.2s;
}

nav a:hover,
nav a.active {
  background-color: #d84315;
}

/* Hero Section */
.hero {
  position: relative;
  background-color: #fdf5f5;
  padding: 70px 20px;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  background-image: url('../image/Tamil_Logo.jpeg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.eyebrow {
  color: #800020;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.hero-title-single {
  font-size: 2.1rem;
  font-weight: 800;
  color: #1a237e;
  white-space: nowrap;
  margin: 10px 0 16px;
}

.hero-content p {
  font-size: 1.05rem;
  color: #4a5568;
  max-width: 700px;
  margin: 0 auto 24px;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  background-color: #800020;
  color: #ffffff;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid #800020;
  transition: opacity 0.2s;
}

.btn.secondary {
  background-color: transparent;
  color: #800020;
}

.btn:hover {
  opacity: 0.9;
}

/* Card Sections */
.section {
  padding: 60px 20px;
}

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

.section-heading span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #d84315;
  letter-spacing: 1px;
}

.section-heading h2 {
  font-size: 1.75rem;
  color: #1a237e;
  margin-top: 4px;
}

.cards.three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

article {
  background: #fdfdfd;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

article .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

article h3 {
  font-size: 1.25rem;
  color: #1a237e;
  margin-bottom: 8px;
}

article p {
  font-size: 0.95rem;
  color: #4a5568;
  flex-grow: 1;
  margin-bottom: 16px;
}

article a {
  color: #d84315;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Feature Band Section */
.band {
  background-color: #f7fafc;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
  padding: 50px 20px;
}

.split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}

.split h2 {
  font-size: 1.6rem;
  color: #1a237e;
  margin: 4px 0 12px;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: #800020;
  font-weight: 600;
}

.stat-box {
  background-color: #ffffff;
  border: 1px solid #cbd5e0;
  padding: 20px;
  border-radius: 6px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  align-items: center;
}

.stat-box strong {
  color: #1a237e;
}

.stat-box span {
  color: #800020;
  font-weight: 600;
}

/* Footer Section */
footer {
  background-color: #1a237e;
  color: #ffffff;
  padding: 40px 20px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffa726;
  margin-bottom: 6px;
}

footer h4 {
  margin-bottom: 12px;
  color: #ffffff;
}

footer a {
  display: block;
  color: #cbd5e0;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

footer a:hover {
  color: #ffffff;
}

.copyright {
  text-align: center;
  border-top: 1px solid #2c389e;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #a0aec0;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .hero-title-single {
    white-space: normal;
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .split, .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .buttons {
    flex-direction: column;
  }
}