/* =========================================
   aaruleswaran.com — Unified Layout
   Ensures consistent left-alignment across all pages
   ========================================= */

:root {
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", Helvetica;
  --maxw: 1240px;

  /* Backgrounds */
  --bg-main: #f6f4ef;     /* warm off-white */
  --bg-card: #f1efe9;     /* card surface */
  --bg-card-hover: #ebe7e0;

  /* Text */
  --text-primary: #1f2933;    /* deep charcoal */
  --text-secondary: #4b5563;  /* muted slate */
  --text-tertiary: #6b7280;   /* quiet supporting text */

  /* Lines / borders */
  --line: rgba(31,41,51,.14);

  /* Accents */
  --accent: #5f7d8c;          /* calm blue-grey */
  --accent-strong: #2b4c66;   /* deep teal-navy */
  --accent-soft: rgba(95,125,140,.18);

  --radius: 18px;
  --pad: 20px;
  --heroH: 70vh;
}

* { box-sizing: border-box; }
html, body { 
  height: 100%; 
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 { margin-top: 0; line-height: 1.2; font-weight: 600; }
a { color: inherit; transition: 0.2s ease; }

/* Layout Containers */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-strong);
  color: #fff;
  padding: 8px;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Header & Nav */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.brand { text-decoration: none; display: block; }
.brand-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-site {
  display: block;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}

.nav-list a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.nav-list a:hover, 
.nav-list a.is-active {
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* Hero Section - FIXED FOR ALIGNMENT */
.hero {
  position: relative;
  height: var(--heroH);
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  /* Ensures content starts at the left grid line */
  display: flex;
  justify-content: flex-start; 
}

.hero-content {
  max-width: 700px;
  text-align: left; /* Forced Left Alignment */
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.9);
  max-width: 500px;
}

/* Main Content Area */
#main { padding: 60px 0; }

.section { margin-bottom: 60px; }

.section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 24px;
}

/* Grid & Cards */
.section-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: var(--line);
}

.card-title { font-size: 1.25rem; margin-bottom: 12px; }
.card-text { color: var(--text-secondary); flex-grow: 1; margin-bottom: 20px; }
.card-link { font-size: 0.9rem; font-weight: 600; color: var(--accent-strong); }

/* Center / CTA - UPDATED FOR CONSISTENCY */
.section-center {
  text-align: left; /* Changed from center to left to match brand style */
  padding-top: 26px;
}

.cta-row {
  display: flex;
  gap: 18px;
  justify-content: flex-start; /* Aligned to left */
  flex-wrap: wrap;
  margin-top: 10px;
}

.text-cta {
  color: var(--text-primary);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(31,41,51,.03);
  font-weight: 500;
}

.text-cta:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 60px;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { 
    display: none; 
    width: 100%; 
    margin-top: 20px;
  }
  .nav-list { 
    flex-direction: column; 
    gap: 12px; 
  }
  .hero { height: 60vh; }
}
/* Add this to the bottom of your styles.css */
.section-continuation {
  margin-top: 80px; /* Adjust this number to increase/decrease the gap */
  border-top: 1px solid var(--line); /* Optional: adds a subtle line like the footer */
  padding-top: 40px;
}