@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Consistent Vishu Branding Colors */
  --brand-maroon: #9A031E; /* Deep traditional red */
  --brand-gold: #F9A03F; /* Bright Kanikonna yellow/gold */
  --brand-dark: #2A1A12; /* Dark brown/black for text */
  --brand-gray: #5F4B41; /* Muted brown/gray for secondary text */
  --brand-bg: #FDFBF7; /* Very light warm off-white */
  --brand-surface: #FFFFFF;
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  background-color: var(--brand-surface);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 30px;
  border-top: 4px solid var(--brand-gold);
  border-bottom: 1px solid #e9e9e9;
  background: var(--brand-surface);
  position: relative;
}

.top-header > .header-left,
.top-header > .header-right {
  flex: 1 1 0;
  min-width: 0;
}

.top-header > .header-center {
  flex: 0 0 290px;
}

.top-header.menu-open {
  border-bottom: none;
}

.header-left {
  font-size: 11px;
  color: var(--brand-gray);
  text-align: center;
  line-height: 1.3;
}

.header-left a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-left img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.header-center {
  text-align: center;
  width: 290px;
  flex: 0 0 290px;
  max-width: 290px;
}

.header-center img {
  max-height: 60px;
}

.header-center .header-center-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.header-center h1,
.header-center .site-title {
  font-size: 36px;
  color: var(--brand-maroon);
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.header-center h1 a,
.header-center .site-title a {
  color: inherit;
  text-decoration: none;
  font: inherit;
}
.header-center p {
  font-size: 12px;
  color: var(--brand-gray);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 0;
}

.date-box {
  background: #FFF5E6;
  border: 1px solid var(--brand-gold);
  padding: 4px 15px;
  font-size: 12px;
  color: var(--brand-maroon);
  font-weight: 600;
  border-radius: 4px;
}

/* Full width of header-right so the bar lines up with the date-box right edge (column + flex-end was shrink-wrapping the form). */
.header-right .search-form {
  align-self: stretch;
  width: 100%;
  justify-content: flex-end;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.search-form input[type="text"] {
  box-sizing: border-box;
  height: 36px;
  line-height: 36px;
  border: 1px solid #ddd;
  margin: 0;
  padding: 0 12px;
  font-size: 13px;
  font-family: inherit;
  flex: 1 1 auto;
  width: 0;
  min-width: 100px;
  max-width: 220px;
  border-radius: 4px 0 0 4px;
  outline: none;
  color: var(--brand-dark);
}

.search-form input[type="text"]:focus {
  border-color: var(--brand-gold);
}

.search-form button {
  box-sizing: border-box;
  height: 36px;
  line-height: 36px;
  background: var(--brand-gold);
  color: var(--brand-surface);
  border: 1px solid var(--brand-gold);
  margin: 0;
  margin-left: -1px;
  border-left: 0;
  padding: 0 15px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 600;
  border-radius: 0 4px 4px 0;
}

.search-form button:hover {
  background: var(--brand-maroon);
  border-color: var(--brand-maroon);
}

/* Hamburger Icon */
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--brand-maroon);
  line-height: 1;
}

/* Navigation */
.navbar-wrapper {
  background: var(--brand-surface);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.navbar {
  padding: 12px 0;
  text-align: center;
  background: var(--brand-surface);
}

.navbar a {
  font-size: 13px;
  color: var(--brand-maroon);
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  padding: 0 16px;
  border-right: 1px solid #ddd;
}

.navbar a:last-child {
  border-right: none;
}

.navbar a:hover {
  color: var(--brand-gold);
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 380px;
  background: url('https://images.unsplash.com/photo-1505576399279-565b52d4ac71?auto=format&fit=crop&w=1200&q=80') center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42, 26, 18, 0.4);
  z-index: 1;
}

.hero h2, .hero p {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 72px;
  color: var(--brand-surface);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  margin: 0;
  font-family: inherit;
  font-weight: 700;
}

.hero p {
  color: var(--brand-surface);
  font-size: 16px;
  margin-top: 10px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
  font-weight: 500;
}

/* Main Layout Grid */
.main-content {
  padding: 30px;
}

/* Top Feature Blocks (Homepage Only) */
.feature-row {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 20px;
  margin-bottom: 40px;
  align-items: stretch;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-item {
  padding: 12px 16px;
  font-size: 13px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.event-item h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  color: var(--brand-maroon);
}

.event-item p {
  margin: 0;
  color: var(--brand-gray);
  font-size: 14px;
}

.bg-cyan { background: #e0f7fa; border-left: 4px solid var(--brand-gold); }
.bg-lightgreen { background: #f1f8e9; border-left: 4px solid var(--brand-gold); }
.bg-lightpink { background: #fce4ec; border-left: 4px solid var(--brand-gold); }
.bg-lightyellow { background: #fffde7; border-left: 4px solid var(--brand-gold); }
.bg-lightorange { background: #fff3e0; border-left: 4px solid var(--brand-gold); }

.image-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  height: 100%;
  gap: 15px;
}

.img-block {
  position: relative;
  height: 100%;
  min-height: 170px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.img-block-link {
  display: block;
  height: 100%;
}

.img-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42, 26, 18, 0.4);
  transition: background 0.3s;
}

.img-block:hover::after {
  background: rgba(42, 26, 18, 0.2);
}

.img-block h4 {
  position: relative;
  z-index: 1;
  color: var(--brand-surface);
  margin: 0;
  font-size: 16px;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.img-block.orange-bg {
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-maroon) 100%);
}
.img-block.orange-bg::after { display: none; }
.img-block.orange-bg p {
  position: relative;
  z-index: 1;
  color: var(--brand-surface);
  margin: 0;
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
}

/* Content Columns */
.content-row {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 30px;
}

/* Left Content */
.left-content {
  background: var(--brand-surface);
}

.left-content h1,
.left-content h2,
.left-content h3,
.left-content h4,
.left-content h5,
.left-content h6 {
  color: var(--brand-maroon);
}

.article-section {
  user-select: none;
  -webkit-user-select: none;
}

.article-section h1,
.article-section h3 {
  color: var(--brand-maroon);
  font-size: 32px;
  margin-bottom: 15px;
  font-family: 'Outfit', sans-serif;
  border-bottom: 2px solid #f4f4f4;
  padding-bottom: 10px;
}

.article-section h2 {
  color: var(--brand-maroon);
  font-size: 27px;
  margin-bottom: 15px;
  font-family: 'Outfit', sans-serif;
  border-bottom: 2px solid #f4f4f4;
  padding-bottom: 10px;
}

.article-section h3 {
  font-size: 26px;
}

.article-section p {
  font-size: 15px;
  color: var(--brand-dark);
  margin-bottom: 20px;
}

.article-section h1 + p,
.article-section h3 + p,
.article-section h4 + p {
  margin-top: 14px;
}

.article-section ul,
.article-section ol {
  margin: 0 0 20px 24px;
  padding-left: 18px;
}

.article-section ul {
  list-style: disc;
}

.article-section ol {
  list-style: decimal;
}

.article-section li {
  margin-bottom: 8px;
}

.sitemap-list {
  margin: 10px 0 0 20px;
  padding: 0;
}

.sitemap-list li {
  margin: 8px 0;
  line-height: 1.5;
}

.sitemap-list a {
  color: var(--brand-maroon);
  text-decoration: none;
  font-weight: 500;
}

.sitemap-list a:hover {
  text-decoration: underline;
}

.sub-article h4 {
  font-size: 20px;
  margin: 30px 0 15px;
  font-family: 'Outfit', sans-serif;
  color: var(--brand-maroon);
}

.image-text-block {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 30px;
  background: var(--brand-bg);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}

.image-text-block img {
  width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
}

.image-text-block .text-list {
  flex: 1;
  font-size: 14px;
  color: var(--brand-dark);
}
.text-list ul {
  list-style: none;
  padding: 0;
}
.text-list ul li {
  margin-bottom: 8px;
  color: var(--brand-maroon);
  font-weight: 500;
}
.text-list ul li::before {
  content: '✿';
  margin-right: 8px;
  color: var(--brand-gold);
}
.read-more {
  text-align: right;
  margin-top: 10px;
}
.read-more a {
  display: inline-block;
  font-size: 12px;
  color: var(--brand-maroon);
  background: transparent;
  border: 1px solid #d8d8d8;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 600;
}
.read-more a:hover {
  background: #f6f6f6;
  border-color: #bcbcbc;
  color: #7b0019;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.article-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  transition: transform 0.2s;
  background: var(--brand-surface);
}

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

.article-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.article-card-content {
  padding: 15px;
}

.article-card h5 {
  font-size: 16px;
  margin: 0 0 10px;
  font-family: 'Outfit', sans-serif;
  color: var(--brand-maroon);
}

.article-card p {
  font-size: 13px;
  color: var(--brand-gray);
  margin-bottom: 10px;
}

.article-card a {
  color: var(--brand-gold);
  font-size: 13px;
  font-weight: 600;
}

/* Beautiful Right Sidebar */
.sidebar-box {
  background: var(--brand-surface);
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.sidebar-box h3 {
  background: linear-gradient(135deg, var(--brand-maroon) 0%, #d12200 100%);
  color: var(--brand-surface);
  padding: 15px;
  margin: 0;
  font-size: 18px;
  font-family: 'Outfit', sans-serif;
  text-align: center;
  letter-spacing: 1px;
}

.sidebar-list {
  padding: 10px 0;
  display: flex;
  flex-direction: column;
}

.sidebar-list a {
  font-size: 14px;
  color: var(--brand-dark);
  padding: 12px 20px;
  border-bottom: 1px solid #f4f4f4;
  font-weight: 500;
  position: relative;
}

.sidebar-list a:last-child {
  border-bottom: none;
}

.sidebar-list a::before {
  content: '›';
  position: absolute;
  left: 10px;
  color: var(--brand-gold);
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  transition: all 0.2s ease;
}

.sidebar-list a:hover {
  color: var(--brand-maroon);
  padding-left: 25px;
  background: var(--brand-bg);
}

.sidebar-list a:hover::before {
  opacity: 1;
}

/* More Info Section */
.more-info-section {
  background: var(--brand-surface);
  border-top: 1px solid #eee;
  padding: 40px 20px;
  text-align: center;
}

.more-info-section h3 {
  font-size: 24px;
  color: var(--brand-maroon);
  margin-bottom: 30px;
  font-family: 'Outfit', sans-serif;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.info-item {
  display: flex;
  gap: 15px;
  background: var(--brand-bg);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}

.info-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-maroon) 100%);
  border-radius: 50%;
  color: var(--brand-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(249,160,63,0.3);
}

.info-text h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-family: 'Outfit', sans-serif;
  color: var(--brand-maroon);
}

.info-text p {
  margin: 0 0 10px 0;
  font-size: 13px;
  color: var(--brand-gray);
}

.info-text a {
  display: inline-block;
  font-size: 12px;
  color: var(--brand-maroon);
  background: transparent;
  border: 1px solid #d8d8d8;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 600;
}
.info-text a:hover {
  background: #f6f6f6;
  border-color: #bcbcbc;
  color: var(--brand-maroon);
  text-decoration: none;
}

/* Bottom Logo Area */
.bottom-logo {
  text-align: center;
  padding: 40px 0 20px;
  border-bottom: 1px solid #eaeaea;
  background: var(--brand-surface);
}
.bottom-logo h2 {
  color: var(--brand-maroon);
  margin: 10px 0 0;
  font-size: 32px;
  font-family: 'Outfit', sans-serif;
}
.bottom-logo p {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--brand-gray);
  margin: 0;
  letter-spacing: 1px;
}

/* Footer Links */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  background: var(--brand-surface);
}

.footer-col h5 {
  font-size: 14px;
  color: var(--brand-maroon);
  margin-bottom: 15px;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 13px;
  color: var(--brand-gray);
}

.footer-col ul li a:hover {
  color: var(--brand-gold);
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--brand-gray);
  background: var(--brand-bg);
  border-top: 1px solid #eee;
}

.footer-nav {
  margin-bottom: 10px;
}

.footer-nav a {
  padding: 0 10px;
  color: var(--brand-gray);
}
.footer-nav a:hover {
  color: var(--brand-maroon);
}

/* Mobile Responsiveness & Hamburger Menu */
@media (max-width: 768px) {
  .header-left, .date-box {
    display: none;
  }
  
  .top-header {
    padding: 10px 20px;
    display: block;
    position: relative;
  }

  .header-center {
    margin: 0 auto;
    max-width: calc(100% - 70px);
  }
  
  .header-right {
    display: none;
    width: 100%;
    background: var(--brand-surface);
    padding: 15px 0 0 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    order: 3;
  }
  
  .header-right.active {
    display: flex;
  }

  .header-right .search-form {
    align-self: center;
    width: auto;
    justify-content: center;
  }

  .search-form input[type="text"] {
    flex: none;
    width: 200px;
    max-width: none;
    min-width: 0;
  }
  
  .hamburger {
    display: block;
    position: absolute;
    right: 12px;
    top: 12px;
    transform: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    z-index: 300;
    pointer-events: auto;
    color: transparent;
    font-size: 0;
    overflow: hidden;
  }

  .hamburger::before,
  .hamburger::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    background: var(--brand-maroon);
    transform-origin: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  }

  .hamburger::before {
    transform: translate(-50%, -50%);
    box-shadow: 0 -6px 0 var(--brand-maroon), 0 6px 0 var(--brand-maroon);
  }

  .hamburger::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
  }

  .hamburger.is-open::before {
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: none;
  }

  .hamburger.is-open::after {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  
  .navbar-wrapper {
    display: none;
  }
  
  .navbar-wrapper.active {
    display: block;
  }
  
  .navbar {
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  
  .navbar a {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 15px;
  }

  .feature-row { grid-template-columns: 1fr; }
  .image-blocks { grid-template-columns: 1fr; }
  .content-row { grid-template-columns: 1fr; }
  .image-text-block { flex-direction: column; }
  .image-text-block img { width: 100%; height: 200px; }
  .articles-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; text-align: center; }
}

/* 404 Page Styles */
.centered-box {
  text-align: center;
  padding: 80px 20px;
  background: var(--brand-bg);
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  margin: 40px auto;
  max-width: 600px;
}

.centered-box h3 {
  font-size: 80px;
  color: var(--brand-maroon);
  margin: 0;
  font-family: 'Outfit', sans-serif;
  line-height: 1;
  border: none;
  padding: 0;
}

.centered-box h4 {
  font-size: 24px;
  color: var(--brand-dark);
  margin: 10px 0 20px;
  font-family: 'Outfit', sans-serif;
}

.centered-box p {
  font-size: 16px;
  color: var(--brand-gray);
  margin-bottom: 30px;
}

.centered-box a.btn {
  display: inline-block;
  background: var(--brand-gold);
  color: var(--brand-surface);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(249, 160, 63, 0.3);
}

.centered-box a.btn:hover {
  background: var(--brand-maroon);
  box-shadow: 0 4px 10px rgba(154, 3, 30, 0.3);
  transform: translateY(-2px);
}
