/* =======================================================
   ExamVibe | Subcategory Page - Modern UI (v2)
   Professional, Responsive & Engaging
========================================================= */

:root {
  --primary: #007bff;
  --primary-dark: #0056b3;
  --gradient: linear-gradient(135deg, #007bff, #00c6ff);
  --radius: 14px;
  --font: 'Poppins', 'Inter', sans-serif;
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  --bg: #f8fafc;
}

/* ===== Base Styles ===== */
body {
  font-family: var(--font);
  background: var(--bg);
  color: #1f1f1f;
  margin: 0;
  padding: 0;
}



.page-title{
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 15px 0 10px;
    line-height: 1.3;
}

.seo-intro{
    font-size: 16px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 25px;
}
.intro-content p{
    margin-bottom:15px;
}

.intro-content h2,
.intro-content h3{
    color:#0f172a;
    margin:20px 0 12px;
}

.intro-content ul{
    padding-left:22px;
}

.intro-content li{
    margin-bottom:8px;
}

/* ===== Container ===== */
.subcategory-container {
  max-width: 1200px;
  color: black;
  margin: 50px auto;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.subcategory-container::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: rgba(0, 123, 255, 0.08);
  border-radius: 50%;
}
.subcategory-container::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 180px;
  height: 180px;
  background: rgba(0, 123, 255, 0.05);
  border-radius: 50%;
}


.subcategory-description{
    background:#f8fafc;
    border-left:5px solid var(--primary);
    padding:20px;
    border-radius:12px;
    line-height:1.8;
    color:#334155;
    margin-bottom:30px;
}



/* ===== Heading ===== */
.subcategory-title {
  font-size: 28px;
  font-weight: 700;
  color: black;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
  text-align: left;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInDown 1s ease;
}

.subcategory-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin-top: 8px;
  border-radius: 3px;
  animation: growLine 1.2s ease forwards;
}

/* ===== Description ===== */
.subcategory-desc {
  color: #444;
  font-size: 15px;
  line-height: 1.7;
  margin: 10px 0 25px;
  animation: fadeInUp 1.1s ease;
  text-align: justify;
}

/* ===== Grid Layout ===== */
.subcategory-grid {
  display: grid;
  gap: 18px;
  animation: fadeInUp 1s ease;
}

/* Responsive Columns */
@media (min-width: 576px) {
  .subcategory-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .subcategory-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
  .subcategory-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
  .subcategory-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ===== Subcategory Card ===== */
.subcategory-card {
  position: relative;
  background: #fff;
  padding: 20px 15px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid #eaeaea;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.35s ease;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
}
.subcategory-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.4s ease;
}
.subcategory-card:hover::before {
  opacity: 0.12;
}
.subcategory-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 22px rgba(0, 123, 255, 0.15);
  border-color: var(--primary);
}
.subcategory-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin: 0;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}
.subcategory-card:hover h3 {
  color: var(--primary-dark);
  transform: scale(1.07);
}



.category-banner-section {
    margin: 20px 0;
}

.banner-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: #fff;
}

.category-banner-img {
    width: 100%;
    height: auto;
    max-height: 800px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.category-banner-img:hover {
    transform: scale(1.02);
}



.category-intro-section {
    margin: 30px 0;
}

.intro-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-left: 5px solid #0d6efd;
    transition: all 0.3s ease;
}

.intro-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.intro-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0d6efd;
}

.intro-content {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    white-space: pre-line;
}



.related-links {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.related-links ul {
    list-style: none;
    padding: 0;
}

.related-links li {
    margin-bottom: 8px;
}

.related-links a {
    text-decoration: none;
    color: #0d6efd;
}

.related-links a:hover {
    text-decoration: underline;
}

.faq-section{
    margin-top:50px;
}

.faq-title{
    font-size:30px;
    font-weight:700;
    color:#0f172a;
    margin-bottom:25px;
}

.accordion-item{
    border:none;
    margin-bottom:12px;
    border-radius:12px !important;
    overflow:hidden;
    box-shadow:0 4px 15px rgba(0,0,0,.06);
}

.accordion-button{
    font-weight:600;
    font-size:17px;
    background:#fff;
    color:#1e293b;
    padding:18px 20px;
}

.accordion-button:not(.collapsed){
    background:#eff6ff;
    color:#0056b3;
    box-shadow:none;
}

.accordion-button:focus{
    box-shadow:none;
}

.accordion-body{
    line-height:1.8;
    color:#475569;
    background:#fff;
}





/* ===== Animations ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes growLine {
  from { width: 0; }
  to { width: 60px; }
}

/* ===== Hover Glow ===== */
.subcategory-card:hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  border-radius: 12px 12px 0 0;
  z-index: 3;
  animation: glowLine 0.6s ease;
}

@keyframes glowLine {
  from { width: 0; opacity: 0; }
  to { width: 100%; opacity: 1; }
}

/* ===== Mobile Optimization ===== */
@media (max-width: 576px) {
  .subcategory-container {
    margin: 20px;
    padding: 15px;
  }
  .subcategory-title {
    font-size: 22px;
  }
  .subcategory-card {
    padding: 15px;
  }
}



@media(max-width:768px){

    .page-title{
        font-size:24px;
    }

    .faq-title{
        font-size:24px;
    }

    .mini-slider-head h2{
        font-size:24px;
    }

    .subcategory-grid{
        grid-template-columns:1fr;
    }

}
