/* RESET & BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #2d3748;
    background: #fafafa; /* Soft off-white background for better contrast and reduced glare */
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 600px) {
    body { font-size: 14px; }
}
@media (min-width: 1200px) {
    body { font-size: 16px; }
}

.page-wrapper {
    max-width: 1400px;
    margin: 10px auto 20px;
    padding: 0 16px;
    width: 100%;
}

.hero-section {
    display: flex;
    gap: 24px;
    width: 100%;
    /* Prevent overflow */
    min-width: 0;
}

/* ——— BANNER ——— */
.hero-banner {
    flex: 1;
    min-width: 0; /* Critical: allows shrinking */
    position: relative;
    max-height: 460px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    background: white;
    border: 1px solid #e2e8f0; /* Subtle border instead of black */
}

.banner-viewport {
    min-height: 420px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

/* ——— BANNER SLIDE BUTTON ——— */
.banner-slide {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 49px;
    min-width: 100%;
    background: #f9fafb; /* Light neutral base */
}

.bs-button {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #e53e3e;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
    width: fit-content;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(229, 62, 62, 0.25);
}

.bs-button:hover {
    background: #c53030;
}

@media (max-width: 768px) {
    .banner-viewport {
    min-height: 240px;
    }
    .banner-slide {
        min-height: 200px;
    }
    .bs-button {
        bottom: 5px;
        right: 130px;
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}

.banner-slide:nth-child(2) {
    background: #f0f4f8 url('https://carpediemias.com/nw/images/cpu2026.png') no-repeat center center;
    background-size: cover;
}

.banner-slide:nth-child(1) {
    background: #f0f4f8 url('https://carpediemias.com/nw/images/cau2026.png') no-repeat center center;
    background-size: cover;
}

.banner-slide h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #1a202c;
    background: rgba(255,255,255,0.85);
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    backdrop-filter: blur(2px);
}
@media (max-width: 600px) {
    .banner-slide h3 { font-size: 1.25rem; }
}
.banner-slide p {
    font-size: 1.1rem;
    color: #4a5568;
    background: rgba(255,255,255,0.85);
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    backdrop-filter: blur(2px);
}
@media (max-width: 600px) {
    .banner-slide p { font-size: 1rem; }
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.92);
    border: 1px solid #e2e8f0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: bold;
    color: #4a5568;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.banner-arrow.prev { left: 12px; }
.banner-arrow.next { right: 12px; }

@media (max-width: 600px) {
    .banner-arrow {
        width: 33px;
        height: 33px;
    }
}

.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    cursor: pointer;
}
.banner-dot.active {
    background: #e53e3e;
}

/* ——— CURRENT AFFAIRS ——— */
.current-affairs-section {
    flex: 0 0 400px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
    min-width: 0;
}

.current-affairs-section h2 {
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
    color: #d32f2f;
}
@media (max-width: 600px) {
    .current-affairs-section h2 { font-size: 1.4rem; }
}

/* 🔴 RED TITLE COLOR */
.ca-title {
    color: #041269 !important;
    font-weight: 700;
}

.featured-ca {
    display: flex;
    gap: 14px;
    background: white;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    border: 1px solid #edf2f7;
    transition: box-shadow 0.25s ease;
}
.featured-ca:hover {
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.12);
}

.ca-thumbnail {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.ca-summary h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    text-align: left;
    font-weight: 600;
}
@media (max-width: 600px) {
    .ca-summary h3 { font-size: 1.05rem; }
}
.ca-summary p {
    font-size: 0.92rem;
    color: #4a5568;
    text-align: left;
    line-height: 1.5;
    margin-top: 4px;
}

/* —— CA CAROUSEL —— */
.ca-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 110px;
    width: 100%;
    min-width: 0;
}

.ca-arrow {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #3D3838;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.ca-arrow:hover:not(:disabled) {
    background: #0D0C0C;
    color: white;
}
.ca-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ca-carousel {
    flex: 1;
    height: 100%;
    overflow: hidden;
    min-width: 0;
}

.ca-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
}

.ca-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 10px;
    min-width: 0;
}

.ca-card {
    width: 100%;
    padding: 14px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    cursor: pointer;
    text-align: left;
    min-width: 0;
    border: 1px solid #edf2f7;
    transition: box-shadow 0.2s ease;
}
.ca-card:hover {
    box-shadow: 0 4px 10px rgba(229, 62, 62, 0.1);
}

.ca-card .ca-title {
    font-size: 1.05rem;
    margin-bottom: 6px;
    font-weight: 600;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    text-align: left !important;
    padding-left: 2px;
}

.ca-card .ca-card-desc {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.4;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .ca-card .ca-card-desc {
        display: none;
    }
    .ca-card {
        padding: 12px 10px;
    }
    .ca-card .ca-title {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 0;
    }
}

/* —— CA DOTS —— */
.ca-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 12px 0 16px;
}

.ca-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: background 0.2s;
}

.ca-dot.active {
    background: #e53e3e;
}

/* —— ALL CURRENT AFFAIRS LINK —— */
.ca-all-link-wrapper {
    text-align: center;
    margin-top: 8px;
}

.ca-all-link {
    display: inline-block;
    color: #2A2083;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.ca-all-link:hover {
    text-decoration: underline;
}

/* ——— MODAL ——— */
.ca-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
    overflow: hidden;
}

.ca-modal.hidden {
    opacity: 0;
    visibility: hidden;
}

.ca-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.ca-modal-content {
    background: white;
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 14px;
    padding: 28px;
    position: relative;
    line-height: 1.7;
    box-shadow: 0 12px 30px rgba(0,0,0,0.22);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f8fafc;
}

.ca-modal-content::-webkit-scrollbar {
    width: 6px;
}
.ca-modal-content::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 3px;
}
.ca-modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.ca-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #a0aec0;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.2s;
}
.ca-modal-close:hover {
    color: #e53e3e;
}

.ca-modal-content h2 {
    font-size: 1.6rem;
    margin-bottom: 14px;
    color: #e53e3e;
    line-height: 1.3;
}
@media (max-width: 600px) {
    .ca-modal-content h2 { font-size: 1.35rem; }
}
.ca-modal-date {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 18px;
    line-height: 1.4;
}
.ca-modal-image {
    max-width: 100%;
    max-height: 160px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin: 16px 0;
    display: block;
    border: 1px solid #edf2f7;
}
.ca-modal-text {
    line-height: 1.75;
    color: #2d3748;
    margin-bottom: 18px;
    font-size: 1rem;
}
.ca-modal-content a {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
}
.ca-modal-content a:hover {
    text-decoration: underline;
}

/* ——— MOBILE LAYOUT ——— */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
    }
    .hero-banner,
    .current-affairs-section {
        flex: 0 0 100%;
        min-width: auto;
    }
    .hero-banner {
        min-height: 240px;
        margin-bottom: 0;
    }
    .current-affairs-section {
        margin-bottom: 40px;
    }

    .ca-carousel-wrapper {
        height: 100px;
        flex-direction: row;
        gap: 10px;
    }
    .ca-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    .ca-carousel {
        flex: 0 0 70%;
    }
    .ca-slide {
        padding: 0 12px;
    }
    .ca-card {
        padding: 12px;
        font-size: 0.92rem;
    }
    .featured-ca {
        flex-direction: column;
        text-align: left;
    }
    .ca-thumbnail {
        width: 100%;
        height: 160px;
    }
    .ca-modal-content {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .ca-carousel-wrapper {
        height: 95px;
    }
    .ca-card {
        padding: 10px;
    }
    .ca-card .ca-title {
        font-size: 0.95rem;
        line-height: 1.35;
    }
    .ca-dots {
        margin: 10px 0 14px;
    }
    .ca-all-link {
        font-size: 0.9rem;
    }
}

/* ——— FAQ SECTION ——— */
.cd-faq {
    padding: 0 0 3.5rem;
    background: #f8fafc;
    font-family: 'Sora', system-ui, sans-serif;
    
    border-bottom: 1px solid #e2e8f0;
}
.cd-faq__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cd-faq__title {
    color: #d32f2f; /* Consistent red variant */
    font-size: 1.875rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.cd-faq__subtitle {
    text-align: center;
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 2.25rem;
    line-height: 1.5;
}

.cd-faq__items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cd-faq__item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    border: 1px solid #edf2f7;
}

.cd-faq__question {
    font-size: 1.125rem;
    color: #d32f2f;
    margin: 0 0 0.875rem;
    font-weight: 600;
}

.cd-faq__answer {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

.cd-faq__answer strong {
    color: #d32f2f;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cd-faq {
        padding: 2.5rem 0;
    }

    .cd-faq__title {
        font-size: 1.5rem;
    }

    .cd-faq__subtitle {
        font-size: 0.95rem;
        padding: 0 0.75rem;
    }

    .cd-faq__question {
        font-size: 1.05rem;
    }

    .cd-faq__answer {
        font-size: 0.9rem;
    }
}


/* SMART READING ZONE — CLEAN & RESPONSIVE */
.srz-section {
  padding: 2rem 1rem;
  background: #F5F5F5;
  font-family: 'Sora', system-ui, sans-serif;
}

.srz-container {
  max-width: 1200px;
  margin: 0 auto;
}

.srz-heading {
  text-align: center;
  font-size: 1.875rem;
  font-weight: 700;
  color: #d32f2f;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.srz-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.srz-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 150px;
  padding: 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  background: #fff;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.srz-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.srz-link-icon {
  font-size: 2.25rem; /* 36px */
  margin-bottom: 0.85rem;
  line-height: 1;
}

.srz-link-text {
  text-align: center;
  font-size: 1.05rem;
  color: #1a1a1a;
  line-height: 1.3;
}

/* Color coding per subject */
.srz-link--gs .srz-link-icon,
.srz-link--gs:hover .srz-link-text {
  color: #e53e3e;
}

.srz-link--socio1 .srz-link-icon,
.srz-link--socio1:hover .srz-link-text {
  color: #2c5282;
}

.srz-link--socio2 .srz-link-icon,
.srz-link--socio2:hover .srz-link-text {
  color: #2f855a;
}

/* Hover effect: subtle colored underline */
.srz-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  transition: width 0.3s ease, left 0.3s ease;
}

.srz-link:hover::after {
  width: 40px;
  left: calc(50% - 20px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .srz-heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .srz-link {
    width: 160px;
    height: 130px;
    padding: 1rem;
  }

  .srz-link-icon {
    font-size: 2rem;
  }

  .srz-link-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .srz-links {
    gap: 1.2rem;
  }

  .srz-link {
    width: 100%;
    max-width: 280px;
    height: 120px;
  }
}