:root {
      --bg: #f4f4f4;
      --text: #222;
      --card-bg: #fff;
      --primary: #0d3d2e;
      --secondary: #146c54;
    }

    body.dark {
      --bg: #121212;
      --text: #e0e0e0;
      --card-bg: #1e1e1e;
      --primary: #198754;
      --secondary: #25a46d;
    }

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

    body {
      font-family: 'Noto Sans Tamil', sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      transition: all 0.3s ease;
    }

    /* Header */
    header {
      background: var(--primary);
      color: #fff;
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
    }

    header h4 {
      font-family: 'Jost', sans-serif;
      font-size: 1.3rem;
      font-weight: 600;
    }

    .logo-section {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .logo-section a {
      text-decoration: none;
      color: #fff;
    }

    .logo {
      height: 40px;
    }

    nav {
      display: flex;
      gap: 1rem;
    }

    .gfont {
      font-family: "Sofadi One", system-ui;
      font-weight: 600;
      font-style: normal;
    }

    nav a {
      color: #fff;
      text-decoration: none;
      font-weight: bold;
      padding: 0.3rem 0.6rem;
      border-radius: 5px;
      transition: background 0.3s ease;
    }

    nav a:hover {
      background: rgba(255, 255, 255, 0.15);
    }

    .menu-toggle {
      display: none;
      font-size: 1.8rem;
      cursor: pointer;
    }

    /* Theme Toggle */
    .theme-toggle {
      cursor: pointer;
      font-size: 1.4rem;
      background: #fff2;
      border-radius: 50%;
      padding: 0.4rem 0.6rem;
      margin-left: 1rem;
      color: #fff;
      transition: background 0.3s ease;
    }

    .theme-toggle:hover {
      background: rgba(255, 255, 255, 0.25);
    }

    /* Sub Heading */
    .sub-heading {
      background: var(--card-bg);
      padding: 1rem;
      text-align: center;
      font-weight: bold;
      color: var(--primary);
      font-size: 1.3rem;
      border-bottom: 2px solid #eee;
    }

    .sub-heading-1 {
      background: var(--card-bg);
      padding: 5px;
      text-align: center;
      font-family: "Amiri Quran", serif;
      font-weight: bold;
      font-style: oblique;
      font-size: 1.3rem;
      color: var(--primary);
    }

    /* Cards */
    .container {
      max-width: 1100px;
      margin: 2rem auto;
      padding: 1rem;
      display: grid;
      gap: 2rem;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .card {
      background: var(--card-bg);
      padding: 1rem;
      border-radius: 10px;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    }

    .card h2 {
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
      color: var(--primary);
    }

    .date {
      font-size: 0.85rem;
      color: #777;
      margin-bottom: 0.8rem;
    }

    .card-img {
      width: 100%;
      border-radius: 8px;
      margin-bottom: 1rem;
      transition: transform 0.3s;
      cursor: pointer;
    }

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

    .button-group {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .view-btn {
      background: var(--primary);
      color: white;
      padding: 0.5rem 1rem;
      border-radius: 5px;
      font-weight: bold;
      text-decoration: none;
      transition: background 0.3s ease;
    }

    .view-btn:hover {
      background: var(--secondary);
    }

    /* Contact Section */
    .contact {
      background: linear-gradient(to bottom right, var(--card-bg), var(--bg));
      padding: 3rem 1.5rem;
      margin: 2rem auto;
      max-width: 1000px;
      border-radius: 15px;
      box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
      text-align: center;
      animation: fadeInUp 0.6s ease-out;
    }

    .contact h2 {
      font-size: 1.8rem;
      color: var(--primary);
      margin-bottom: 0.5rem;
    }

    .contact-subtitle {
      font-size: 1rem;
      color: hsla(0, 0%, 33%, 0.801);
      margin-bottom: 2rem;
      text-align: start;
      font-weight: lighter;
    }

    .info-box {
      background: var(--card-bg);
      padding: 1.5rem;
      border-radius: 10px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
      text-align: center;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      width: 240px;
    }

    .info-box h3 {
      color: var(--secondary);
    }

    .info-box a {
      color: var(--primary);
      text-decoration: none;
      font-weight: 500;
    }

    /* Social Media */
    .social-media a {
      background: var(--primary);
      color: #fff;
      padding: 0.6rem 1.2rem;
      border-radius: 8px;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: all 0.3s ease;
      text-decoration: none;
    }

    .social-media a:hover {
      background: var(--secondary);
      transform: translateY(-2px);
    }

    /* Footer */
    footer {
      background: var(--primary);
      color: #fff;
      text-align: center;
      padding: 1rem;
    }