/**
 * ExamsAlerts.in - Single Job / Recruitment Post Stylesheet
 * Exact match to the official ExamsAlerts Desktop and Mobile recruitment layouts
 */

/* Main Container */
.ea-single-article {
  background: #ffffff;
  padding: 10px 0 20px 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #111827;
}

/* Breadcrumbs */
.ea-post-breadcrumbs {
  font-size: 0.82rem;
  color: #0033cc;
  margin-bottom: 12px;
}

.ea-post-breadcrumbs a {
  color: #0033cc;
}

.ea-post-breadcrumbs a:hover {
  text-decoration: underline;
}

/* Post Header */
.ea-single-header {
  margin-bottom: 14px;
}

.ea-single-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #000000;
  line-height: 1.35;
  margin-bottom: 8px;
}

.ea-single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 12px;
}

/* Featured Image Banner (16:9 Standard Responsive Layout) */
.ea-post-featured-image-wrap {
  margin: 18px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  background: #f8fafc;
  width: 100%;
}

.ea-post-featured-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  max-width: 100%;
  transition: transform 0.25s ease;
}

.ea-post-featured-image-wrap:hover .ea-post-featured-image {
  transform: scale(1.01);
}

/* Short Info Intro */
.ea-single-intro {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #111827;
  margin-bottom: 16px;
}

.ea-single-intro strong.highlight-red {
  color: #cc0000;
}

/* Social CTA Buttons */
.ea-single-cta-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.ea-single-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 4px;
  color: #ffffff;
  font-weight: bold;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.15s;
}

.ea-single-cta-btn:hover {
  opacity: 0.92;
  color: #ffffff;
  text-decoration: none;
}

.ea-single-cta-btn.wa {
  background: #16a34a;
}

.ea-single-cta-btn.tg {
  background: #0284c7;
}

/* ==========================================================================
   Short Details Main Box
   ========================================================================== */
.ea-short-details-card {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  margin-bottom: 16px;
}

.ea-sd-titles {
  text-align: center;
  padding: 12px 10px 10px 10px;
}

.ea-sd-title-red {
  color: #cc0000;
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.ea-sd-title-green {
  color: #15803d;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 4px;
}

.ea-sd-title-blue {
  color: #0033cc;
  font-size: 0.95rem;
  font-weight: bold;
}

/* 2-Col Header (Dates & Fees) */
.ea-dates-fees-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #cbd5e1;
}

.ea-col-dates, .ea-col-fees {
  background: #ffffff;
}

.ea-col-dates {
  border-right: 1px solid #cbd5e1;
}

.ea-df-header {
  background: #4a0000;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
  padding: 6px 10px;
  font-size: 0.95rem;
}

.ea-df-content {
  padding: 10px 14px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ea-df-content ul {
  list-style: none;
}

.ea-df-content li {
  margin-bottom: 6px;
}

.ea-df-content strong.red-text {
  color: #cc0000;
}

/* Age Limit & Total Post Row */
.ea-age-total-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  border-top: 1px solid #cbd5e1;
}

.ea-age-col {
  border-right: 1px solid #cbd5e1;
}

.ea-age-header {
  background: #15803d;
  color: #ffffff;
  font-weight: bold;
  padding: 6px 12px;
  font-size: 0.92rem;
}

.ea-age-body {
  padding: 10px 14px;
  font-size: 0.88rem;
}

.ea-age-body ul {
  list-style: none;
}

.ea-age-body li {
  margin-bottom: 4px;
}

.ea-total-col {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.ea-total-header {
  background: #e65100;
  color: #ffffff;
  font-weight: bold;
  padding: 6px 10px;
  font-size: 0.92rem;
}

.ea-total-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 900;
  color: #111827;
  padding: 10px;
}

/* ==========================================================================
   Full Width Section Boxes (Vacancy, Eligibility, etc.)
   ========================================================================== */
.ea-section-navy-box {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  margin-bottom: 16px;
}

.ea-snb-header {
  background: #080866;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
  padding: 6px 10px;
  font-size: 0.95rem;
}

.ea-table-exact {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.ea-table-exact th {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 10px;
  font-weight: bold;
  text-align: center;
}

.ea-table-exact td {
  border: 1px solid #cbd5e1;
  padding: 6px 10px;
  vertical-align: middle;
}

.ea-table-exact td.text-center {
  text-align: center;
}

/* Eligibility Criteria Table */
.ea-elig-table td {
  padding: 8px 12px;
  line-height: 1.45;
}

.ea-elig-table td:first-child {
  font-weight: bold;
  width: 32%;
}

.ea-elig-table ul {
  padding-left: 14px;
}

/* ==========================================================================
   3-Column Bottom Box Grid (Desktop)
   ========================================================================== */
.ea-bottom-3col-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.ea-bottom-box {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.ea-bottom-box:first-child {
  background: #fef08a; /* Fills entire box seamlessly with golden yellow */
}

.ea-bottom-box-header {
  background: #080866;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
  padding: 6px 8px;
  font-size: 0.85rem;
  line-height: 1.3;
}

.ea-bottom-box-body {
  padding: 10px 12px;
  font-size: 0.85rem;
  flex: 1;
}

.ea-bottom-box-body ul {
  padding-left: 14px;
}

.ea-bottom-box-body ol {
  padding-left: 18px;
  margin: 8px 0;
}

.ea-bottom-box-body li {
  margin-bottom: 8px;
  line-height: 1.45;
}

.ea-bottom-box-body blockquote, 
.ea-bottom-box-body .callout-note {
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
  padding: 8px 12px;
  margin: 10px 0;
  border-radius: 0 4px 4px 0;
  font-size: 0.82rem;
  color: #92400e;
}

/* Golden / Yellow Important Links Table */
.ea-golden-links-table {
  width: 100%;
  flex: 1;
  border-collapse: collapse;
  background: #fef08a; /* Golden yellow */
}

.ea-golden-links-table td {
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  font-size: 0.85rem;
}

.ea-golden-links-table td:first-child {
  font-weight: bold;
  color: #111827;
}

.ea-golden-links-table td:last-child {
  text-align: center;
}

.ea-golden-links-table a {
  color: #0033cc;
  font-weight: bold;
}

/* ==========================================================================
   FAQs Section
   ========================================================================== */
.ea-faqs-container {
  padding: 8px 12px;
}

.ea-faq-single-row {
  border-bottom: 1px solid #e2e8f0;
  padding: 6px 0;
}

.ea-faq-single-row:last-child {
  border-bottom: none;
}

.ea-faq-single-q {
  font-weight: bold;
  font-size: 0.86rem;
  color: #111827;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.ea-faq-single-a {
  font-size: 0.84rem;
  color: #374151;
  margin-top: 4px;
  line-height: 1.4;
}

/* ==========================================================================
   Disclaimer Box
   ========================================================================== */
.ea-disclaimer-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 12px 16px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #166534;
  margin-bottom: 18px;
  border-radius: 4px;
}

.ea-disclaimer-card strong {
  color: #14532d;
}

/* ==========================================================================
   Mobile-Specific Layout (< 769px)
   ========================================================================== */
@media (max-width: 768px) {
  .ea-single-title {
    font-size: 1.2rem;
  }
  .ea-single-cta-wrap {
    flex-direction: column;
    gap: 8px;
  }
  .ea-single-cta-btn {
    width: 100%;
  }
  
  /* Desktop grids to stacked */
  .ea-dates-fees-grid {
    grid-template-columns: 1fr;
  }
  .ea-col-dates {
    border-right: none;
    border-bottom: 1px solid #cbd5e1;
  }
  
  .ea-age-total-row {
    grid-template-columns: 1fr;
  }
  .ea-age-col {
    border-right: none;
    border-bottom: 1px solid #cbd5e1;
  }
  
  .ea-bottom-3col-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile Accordion Bars for Sections */
  .ea-mobile-sec-toggle {
    display: flex !important;
    width: 100%;
    background: #080866;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.92rem;
    padding: 8px 12px;
    border: none;
    margin-bottom: 4px;
    border-radius: 2px;
    text-align: left;
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
  }

  .ea-mobile-sec-content {
    display: none;
    margin-bottom: 10px;
  }

  .ea-mobile-sec-content.open {
    display: block !important;
  }
  
  .ea-mobile-hide-header {
    display: none;
  }
}

@media (min-width: 769px) {
  .ea-mobile-sec-toggle {
    display: none !important;
  }
  .ea-mobile-sec-content {
    display: block !important;
  }
}

/* =========================================================================
   FEATURE 2: Internal Links Section Styles
   ========================================================================= */
.ea-internal-links-section {
  margin: 24px 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: 3px solid #080866;
  border-radius: 4px;
  padding: 16px 20px;
}

.ea-internal-links-title {
  font-size: 1.15rem;
  color: #080866;
  font-weight: 800;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 6px;
}

.ea-internal-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ea-internal-links-list li {
  position: relative;
  padding-left: 14px;
}

.ea-internal-links-list li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: #d50000;
  font-size: 1rem;
  line-height: 1;
}

.ea-internal-links-list a {
  color: #080866;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: color 0.15s;
}

.ea-internal-links-list a:hover {
  color: #d50000;
  text-decoration: underline;
}

/* =========================================================================
   FEATURE 3: Automatic Related Posts Grid (3 Desktop / 2 Tablet / 1 Mobile)
   ========================================================================= */
.ea-related-posts-section {
  margin: 24px 0;
}

.ea-related-posts-title {
  font-size: 1.2rem;
  color: #080866;
  font-weight: 800;
  margin-bottom: 14px;
  border-bottom: 2px solid #d50000;
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ea-related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ea-related-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ea-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px -4px rgba(0,0,0,0.1);
  border-color: #080866;
}

.ea-related-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
}

.ea-related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.ea-related-card:hover .ea-related-img {
  transform: scale(1.03);
}

.ea-related-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #080866;
  line-height: 1.45;
  padding: 12px 14px;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ea-related-card:hover .ea-related-title {
  color: #d50000;
}

@media (max-width: 900px) {
  .ea-related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ea-related-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Full Width Section Boxes (Vacancy, Eligibility, Selection, How To Apply, FAQs, etc.)
   ========================================================================== */
.ea-section-navy-box,
.ea-single-card {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  margin-bottom: 18px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ea-snb-header,
.ea-card-header {
  background: #080866;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
  padding: 8px 14px;
  font-size: 0.95rem;
  line-height: 1.4;
  letter-spacing: 0.2px;
}

.ea-snb-body,
.ea-card-body {
  padding: 14px 18px;
  background: #ffffff;
  font-size: 0.94rem;
  line-height: 1.7;
  color: #1e293b;
}

.ea-snb-body p,
.ea-card-body p {
  margin: 0 0 10px 0;
  line-height: 1.7;
}

.ea-snb-body h2,
.ea-card-body h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #080866;
  margin: 4px 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.ea-snb-body h3,
.ea-card-body h3 {
  font-size: 1.05rem;
  font-weight: 750;
  color: #0f172a;
  margin: 14px 0 8px 0;
}

/* Bullet Lists (•) - Straight & Clean Alignment */
.ea-snb-body ul,
.ea-card-body ul,
.ea-single-intro ul {
  list-style-type: disc !important;
  margin: 8px 0 12px 0 !important;
  padding-left: 18px !important;
}

.ea-snb-body ul li,
.ea-card-body ul li,
.ea-single-intro ul li {
  margin-bottom: 7px !important;
  padding-left: 3px !important;
  line-height: 1.65 !important;
}

/* Ensure Upper Tables (Dates, Fees, Age, Eligibility) have single clean bullets without browser disc */
.ea-df-content,
.ea-age-body {
  padding: 12px 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.ea-df-content ul,
.ea-age-body ul,
.ea-elig-table ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ea-df-content ul li,
.ea-age-body ul li,
.ea-elig-table ul li {
  list-style: none !important;
  padding-left: 0 !important;
  margin-bottom: 7px !important;
  line-height: 1.6 !important;
}

/* Numbered (1, 2, 3) Lists - Straight & Clean Alignment */
.ea-snb-body ol,
.ea-card-body ol,
.ea-single-intro ol {
  list-style-type: decimal !important;
  margin: 8px 0 12px 0 !important;
  padding-left: 20px !important;
}

.ea-snb-body ol li,
.ea-card-body ol li,
.ea-single-intro ol li {
  margin-bottom: 8px !important;
  padding-left: 4px !important;
  line-height: 1.65 !important;
}

.ea-snb-body ol li::marker,
.ea-card-body ol li::marker {
  font-weight: bold;
  color: #080866;
}

/* Callout Notice / Blockquote Box */
.ea-snb-body blockquote,
.ea-card-body blockquote,
.ea-single-intro blockquote {
  margin: 14px 0 8px 0 !important;
  padding: 12px 16px !important;
  background: #fefce8 !important;
  border-left: 4px solid #eab308 !important;
  border-radius: 4px !important;
  color: #713f12 !important;
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
}

.ea-snb-body blockquote p,
.ea-card-body blockquote p {
  margin: 0 !important;
}

/* ==========================================================================
   Mobile Optimization Rules (< 768px & < 480px)
   ========================================================================== */
@media (max-width: 768px) {
  .ea-single-article {
    padding: 6px 0 16px 0;
  }

  .ea-single-title {
    font-size: 1.25rem;
    line-height: 1.35;
  }

  .ea-single-meta {
    font-size: 0.8rem;
    gap: 10px;
    flex-wrap: wrap;
  }

  .ea-df-content,
  .ea-age-body,
  .ea-snb-body,
  .ea-card-body {
    padding: 10px 14px !important;
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
  }

  .ea-snb-body ul,
  .ea-card-body ul,
  .ea-single-intro ul {
    padding-left: 16px !important;
    margin: 6px 0 10px 0 !important;
  }

  .ea-snb-body ol,
  .ea-card-body ol,
  .ea-single-intro ol {
    padding-left: 18px !important;
    margin: 6px 0 10px 0 !important;
  }

  .ea-snb-body blockquote,
  .ea-card-body blockquote {
    padding: 10px 14px !important;
    margin: 12px 0 6px 0 !important;
    font-size: 0.88rem !important;
  }

  .ea-table-exact {
    font-size: 0.82rem;
  }

  .ea-table-exact th,
  .ea-table-exact td {
    padding: 6px 8px;
  }

  .ea-golden-links-table td {
    padding: 8px 10px;
    font-size: 0.88rem;
  }
}
