/**
 * page.css
 * Styling definitions for the default page template.
 *
 * @package Srushti_Theme
 */

.page-content-section {
  padding: 0 0 var(--space-16);
  background-color: var(--color-midnight);
}

.entry-article {
  width: 100%;
}

/* ─────────────────────────────────────────────
   ENTRY TYPOGRAPHY & SPACING
   ───────────────────────────────────────────── */
.entry-content {
  text-align: left;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: clamp(15px, 1.5vw, 17px);
}

.entry-content p {
  margin-bottom: var(--space-6);
  line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  letter-spacing: -0.015em;
}

.entry-content h2 {
  font-size: clamp(20px, 3.2vw, 26px);
}

.entry-content h3 {
  font-size: clamp(18px, 2.4vw, 24px);
}

.entry-content h4 {
  font-size: clamp(17px, 1.8vw, 20px);
}

/* ─────────────────────────────────────────────
   LIST STYLING
   ───────────────────────────────────────────── */
.entry-content ul,
.entry-content ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
  display: block;
  text-align: left;
}

.entry-content ul {
  list-style-type: disc !important;
}

.entry-content ul li {
  margin-bottom: var(--space-3);
}

.entry-content ol {
  list-style-type: decimal;
}

.entry-content ol li {
  margin-bottom: var(--space-3);
  padding-left: var(--space-2);
}

/* ─────────────────────────────────────────────
   LINKS & HOVERS
   ───────────────────────────────────────────── */
.entry-content a {
  color: var(--color-brand-red-bright);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(204, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.entry-content a:hover {
  color: var(--color-brand-red-bright);
  border-bottom-color: var(--color-brand-red-bright);
  text-shadow: 0 0 10px rgba(255, 26, 26, 0.3);
}

/* ─────────────────────────────────────────────
   BLOCKQUOTES
   ───────────────────────────────────────────── */
.entry-content blockquote {
  position: relative;
  margin: var(--space-10) 0;
  padding: var(--space-6) var(--space-8);
  background: var(--color-surface-2);
  border-left: 4px solid var(--color-brand-red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: normal;
  color: var(--text-primary);
}

.entry-content blockquote p {
  margin-bottom: 0;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   TABLE STYLING
   ───────────────────────────────────────────── */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-8) auto;
  font-size: 14.5px;
}

.entry-content th,
.entry-content td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--color-border-subtle);
}

.entry-content th {
  font-weight: 700;
  color: var(--text-primary);
  background: var(--color-surface-2);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.entry-content tr:hover td {
  background: var(--color-surface-3);
  color: var(--text-primary);
}

/* ─────────────────────────────────────────────
   IMAGE & MEDIA ALIGNMENTS
   ───────────────────────────────────────────── */
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  border: 1px solid var(--color-border-subtle);
}

.alignleft {
  float: left;
  margin-right: var(--space-8);
  margin-bottom: var(--space-6);
}

.alignright {
  float: right;
  margin-left: var(--space-8);
  margin-bottom: var(--space-6);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-6);
}

.wp-caption {
  max-width: 100%;
  text-align: center;
}

.wp-caption-text {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: var(--space-2);
}

/* ─────────────────────────────────────────────
   RESPONSIVE DESIGN ADAPTATIONS
   ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .entry-content img.alignleft,
  .entry-content img.alignright {
    float: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .entry-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
