/* Kasmiri Saivizmus Iskolaja - Static Site Styles */
/* Based on Kenta Ciela Theme Design System */

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* Primary colors - deep red accent */
  --kenta-primary-color: #8B0000;
  --kenta-primary-active: #A52A2A;
  --kenta-accent-color: #181f28;
  --kenta-accent-active: #334155;
  --kenta-base-color: #ffffff;
  --kenta-base-100: #f8fafc;
  --kenta-base-200: #f1f5f9;
  --kenta-base-300: #e2e8f0;

  /* Semantic color aliases */
  --primary-color: var(--kenta-primary-color);
  --primary-active: var(--kenta-primary-active);
  --text-dark: var(--kenta-accent-color);
  --text-light: var(--kenta-accent-active);
  --white: var(--kenta-base-color);
  --light-bg: var(--kenta-base-100);
  --lighter-bg: var(--kenta-base-200);
  --border-color: var(--kenta-base-300);

  /* Spacing */
  --section-padding: 80px 0;
  --block-gap: 1.2rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 20px rgba(44, 62, 80, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);

  /* Border Radius - Kenta uses 4-8px */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Layout Containers
   ============================================ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Typography - Kenta Theme Style
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-active);
}

/* ============================================
   Header & Navigation - Kenta Style
   ============================================ */
header {
  background: var(--text-dark);
  box-shadow: var(--shadow-sm);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  min-height: 60px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  min-height: 60px;
}

.logo {
  display: flex;
  flex-direction: column;
  max-width: 200px;
}

.logo h1 {
  font-size: 1rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.2;
}

.logo span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
  position: relative;
  padding: 8px 0;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

/* Dropdown Menu */
.nav-links li.dropdown {
  position: relative;
}

.nav-links li.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--text-dark);
  min-width: 250px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 12px 0;
  z-index: 1001;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links li.dropdown:hover .dropdown-menu {
  display: block;
}

.nav-links li.dropdown .dropdown-menu li {
  padding: 0;
}

.nav-links li.dropdown .dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.nav-links li.dropdown .dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Toggle */
.mobile-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.mobile-menu:hover {
  background: var(--light-bg);
}

.mobile-menu span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ============================================
   Hero Section - Kenta Cover Block Style
   ============================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55)),
              url('../images/dal-lake-hazratbal.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  padding: 60px 0;
  color: var(--white);
  margin-top: 60px; /* Account for fixed header */
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 32px;
  font-style: italic;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.hero p strong {
  font-weight: 600;
}

/* ============================================
   Buttons - Kenta Style
   ============================================ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-active);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

/* ============================================
   Section Styling
   ============================================ */
section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ============================================
   About Section
   ============================================ */
.about {
  background: var(--light-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.about-content h2 {
  color: var(--text-dark);
  margin-bottom: 24px;
}

.about-content p {
  font-size: 1rem;
  margin-bottom: var(--block-gap);
}

.about-content .btn {
  margin-top: 16px;
}

/* ============================================
   Teaching Cards - Kenta Card Style
   ============================================ */
.teachings {
  background: var(--white);
}

.teachings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.teaching-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid var(--border-color);
}

.teaching-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

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

.teaching-card-content {
  padding: 28px;
}

.teaching-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.teaching-card p {
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.teaching-card a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.teaching-card a:hover {
  text-decoration: none;
}

/* ============================================
   Resources Section - Dark Cards
   ============================================ */
.resources {
  background: var(--light-bg);
}

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

.resource-card {
  background: linear-gradient(135deg, var(--text-dark), #2a3441);
  color: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.resource-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--white);
}

.resource-card p {
  font-size: 0.9rem;
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.resource-card a {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.resource-card a:hover {
  color: var(--primary-active);
}

/* ============================================
   Page Header - Interior Pages
   ============================================ */
.page-header {
  padding: 120px 0 60px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)),
              url('../images/tanitasok-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  text-align: center;
  margin-top: 60px;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
  color: var(--white);
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Content Page Styling
   ============================================ */
.content-page {
  padding: var(--section-padding);
}

.content-page h2 {
  font-size: 1.75rem;
  margin: 40px 0 20px;
  color: var(--text-dark);
  padding-top: 20px;
}

.content-page h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

.content-page h3 {
  font-size: 1.25rem;
  margin: 28px 0 16px;
  color: var(--text-dark);
}

.content-page p {
  margin-bottom: var(--block-gap);
}

.content-page ul,
.content-page ol {
  margin-left: 24px;
  margin-bottom: 24px;
}

.content-page li {
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ============================================
   Breathing Exercise Box - Feature Box
   ============================================ */
.breathing-exercise {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  padding: 40px;
  border-radius: var(--radius-lg);
  margin: 32px 0;
  border: 1px solid #bae6fd;
}

.breathing-exercise h3 {
  color: var(--primary-active);
  margin-bottom: 24px;
}

.breathing-exercise p {
  margin-bottom: 16px;
}

.breathing-steps {
  display: grid;
  gap: 16px;
}

.step {
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.step strong {
  color: var(--text-dark);
}

/* ============================================
   Websites Grid
   ============================================ */
.websites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.website-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
  text-align: center;
  border: 1px solid var(--border-color);
}

.website-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

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

.website-card-content {
  padding: 24px;
}

.website-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.website-card a {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================
   Books Grid
   ============================================ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.book-card {
  background: linear-gradient(135deg, var(--text-dark), #2a3441);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-normal);
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.book-cover {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.book-info {
  padding: 28px;
  color: var(--white);
}

.book-info h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--white);
}

.book-info p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.book-info .language {
  font-size: 0.85rem;
  opacity: 0.7;
  font-style: italic;
  display: block;
  margin-bottom: 16px;
}

.book-info a {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================
   Blog Cards
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
  border: 1px solid var(--border-color);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

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

.blog-card-content {
  padding: 28px;
}

.blog-card-content .category {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--white);
  background: var(--primary-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.blog-card-content .date {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.blog-card-content h3 a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.blog-card-content h3 a:hover {
  color: var(--primary-color);
}

.blog-card-content p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-card-content a {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Blog Article Styling */
.blog-article {
  max-width: 800px;
  margin: 0 auto;
}

.blog-article p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.blog-article em {
  font-style: italic;
  color: var(--text-dark);
}

.blog-article strong {
  font-weight: 600;
  color: var(--text-dark);
}

/* ============================================
   Hero Image Section
   ============================================ */
.hero-image-section {
  padding: 0 0 40px 0;
  background: var(--white);
}

.hero-image-section .hero-image {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   Note Box & Blockquote
   ============================================ */
.note {
  background: #f0f9ff;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 24px 0;
  font-size: 0.95rem;
}

blockquote {
  background: #f8f9fa;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  margin: 32px 0;
  font-style: italic;
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

blockquote p {
  margin-bottom: 0;
}

/* ============================================
   Footer - Kenta Style
   ============================================ */
footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 60px 0 24px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

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

.footer-contact p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-contact .social-links {
  justify-content: center;
  margin-top: 16px;
}

.footer-contact .social-links svg {
  width: 20px;
  height: 20px;
}

.footer-about h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-about p {
  opacity: 0.8;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.footer-links h4 {
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: var(--white);
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--transition-fast);
}

.social-links a:hover {
  background: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ============================================
   Contact Info Box
   ============================================ */
.contact-info {
  background: var(--light-bg);
  padding: 32px;
  border-radius: var(--radius-lg);
  margin: 32px 0;
  border: 1px solid var(--border-color);
}

.contact-info h3 {
  margin-bottom: 16px;
}

.contact-info a {
  font-weight: 600;
}

/* ============================================
   Utility Classes
   ============================================ */
.is-no-margin {
  margin: 0 !important;
}

.is-no-margin-top {
  margin-top: 0 !important;
}

.is-no-margin-bottom {
  margin-bottom: 0 !important;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--text-dark);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 12px 0;
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-links li.dropdown .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding: 0 0 0 20px;
    min-width: auto;
    background: transparent;
  }

  .nav-links li.dropdown .dropdown-menu a {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.7);
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    padding: 60px 0 40px;
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .page-header {
    padding: 120px 0 60px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .teachings-grid,
  .websites-grid,
  .books-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .breathing-exercise {
    padding: 28px;
  }

  section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .container,
  .container-narrow {
    padding: 0 16px;
  }

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

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }

  .logo h1 {
    font-size: 1rem;
  }

  nav {
    padding: 12px 0;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  header,
  footer,
  .mobile-menu,
  .btn {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }

  .hero {
    min-height: auto;
    padding: 20px 0;
    background: none !important;
    color: #000;
  }

  .hero h1,
  .hero p {
    color: #000;
    text-shadow: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .page-header {
    background: none !important;
    color: #000;
    padding: 20px 0;
    margin-top: 0;
  }

  .page-header h1,
  .page-header p {
    color: #000;
  }
}
