:root {
    --primary-color: #E6B33D;
    --secondary-color: #4a9fa6;
    --dark-color: #163047;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Typography - NY Times inspired */
h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 2rem 0 1rem;
    color: var(--dark-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

h3 {
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 1.5rem 0 0.75rem;
    color: var(--dark-color);
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 1rem 0 0.5rem;
    color: var(--text-dark);
}

p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Header */
.header {
  background: white;
  box-shadow: var(--shadow-md);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-color);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--primary-color);
}
/* Submenu: Base Style */
.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 210px;
  display: none;
  flex-direction: column;
  padding: 0.5rem 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  list-style: none;
}

/* Submenu Items */
.submenu li {
  position: relative;
  list-style: none;
}

.submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  white-space: nowrap;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
}

.submenu a:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Show submenu on hover */
.has-submenu:hover > .submenu {
  display: flex;
}

/* Nested submenu (flyout) */
.submenu .submenu {
  top: 0;
  left: 100%;
  margin-left: 0px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  padding: 0.5rem 0;
  list-style: none;
}

/* Optional: Only show arrows for items that have further submenus */
.has-submenu > a::after {
  content: '';
  margin-left: 6px;
  font-size: 0.6rem;
  color: var(--text-primary);
}

.has-submenu > a + .submenu {
  /* This selector applies only if there is a submenu */
}

.has-submenu > .submenu .has-submenu > a::after {
  content: '▶';
  font-size: 0.65rem;
  color: var(--text-primary);
  margin-left: 6px;
}

/* Remove unnecessary arrows from items that do not have submenu */
.submenu li:not(.has-submenu) > a::after {
  content: none;
}

/* Show only when .open is active */
.has-submenu.open > .submenu {
  display: flex;
  flex-direction: column;
}
/* Mobile Styles */
@media (max-width: 768px) {

  

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    
    background: white;
    display: none;
    flex-direction: column;
    padding: 1rem;
    height: 100vh;
  }

  .nav.active {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }

  .submenu {
    position: static;
    display: none;
    flex-direction: column;
    padding-left: 1rem;
    box-shadow: none;
  }

  .has-submenu.open > .submenu {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.container-1 {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Page Header */
.page-header {
  position: relative;
  text-align: center;
  padding: 4rem 1rem;
  background: url(https://getmycollege.co.in/wp-content/uploads/2025/08/bsc-course-bg.jpeg) center/cover no-repeat;
  color: white; /* Make all text white by default */
  border-bottom: 1px solid var(--border-color);
  z-index: 1;
}
.page-header h1{
    color: #d19d2c;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay */
  z-index: -1;
}

.subtitle {
  font-size: 1.125rem;
  color: #f0f0f0; /* Light grey for contrast */
  margin-bottom: 1rem;
}

.header-meta {
  font-size: 0.875rem;
  color: #ccc;
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}


/* Content Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
    margin-top: 3rem;
}

.main-content {
    min-width: 0;
}

.content-section {
    margin-bottom: 3rem;
}

/* Highlight Box */
.highlight-box {
    background-color: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box h4 {
    margin-top: 0;
    color: var(--dark-color);
}

.highlight-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.highlight-box li {
    margin-bottom: 0.5rem;
}

/* Advertisement Banners */
.ad-banner {
    background: linear-gradient(135deg, var(--primary-color), #f4c430);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.ad-banner .ad-content h4 {
    color: var(--white);
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.ad-banner .ad-content p {
    color: var(--white);
    margin-bottom: 1rem;
    opacity: 0.95;
}

.ad-btn {
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.ad-btn:hover {
    background-color: var(--dark-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Sidebar Advertisement Cards */
.ad-card {
    background: linear-gradient(135deg, var(--secondary-color), #5bb3ba);
    border-radius: 12px;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.ad-card h3 {
    color: var(--white);
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
}

.ad-card p {
    color: var(--white);
    opacity: 0.95;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.ad-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.ad-features li {
    color: var(--white);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.ad-card .ad-btn {
    background-color: var(--white);
    color: var(--secondary-color);
    font-size: 0.85rem;
    padding: 0.6rem 1.25rem;
}

.ad-card .ad-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.toc-row {
    position: sticky;
    top: 85px; /* adjust based on your fixed header */
    z-index: 999;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    justify-content: center;
}

.toc-scroll {
    max-width: 100%;
    overflow-x: visible;
}

.toc-list-horizontal {
    display: inline-flex; /* changed from flex to inline-flex */
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0 auto; /* helps in centering inline-flex */
}

.toc-list-horizontal li a {
    display: inline-block;
    color: var(--secondary-color);
    font-size: 0.9375rem;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: var(--transition);
    white-space: nowrap;
}

.toc-list-horizontal li a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}


/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns by default */
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.course-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.course-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.course-card ul {
    list-style: none;
    padding: 0;
}

.course-card li {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.course-card li:last-child {
    border-bottom: none;
}
@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }
}


/* Semester Breakdown */
.semester-breakdown {
    display: grid;
    grid-template-columns: 1fr; /* Single column */
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.semester {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 4px solid var(--secondary-color);
}

.semester h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.semester ul {
    padding-left: 1.5rem;
}

.semester li {
    margin-bottom: 0.5rem;
}

/* Emerging Courses */
.emerging-courses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.emerging-item {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 3px solid var(--secondary-color);
}

.emerging-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.emerging-item p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* Assessment Grid */
.assessment-grid {
    display: grid;
    grid-template-columns: 1fr; /* default: 1 column */
    gap: 1.5rem;
    margin: 1.5rem 0;
}

@media (min-width: 768px) {
    .assessment-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets and up */
    }
}

.assessment-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.assessment-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.assessment-item p {
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}


/* Admission Types */
.admission-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.admission-type {
    background-color: var(--light-bg);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.admission-type h5 {
    color: var(--dark-color);
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.admission-type p {
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* Timeline */
.timeline {
    display: grid;
    grid-template-columns: 1fr; /* default: 1 column on small screens */
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (min-width: 768px) {
    .timeline {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets and above */
    }
}

.timeline-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    position: relative;
}

.timeline-item h5 {
    color: var(--primary-color);
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.timeline-item p {
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}


/* Cost Breakdown */
.cost-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.cost-item {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 3px solid var(--primary-color);
}

.cost-item h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.cost-item ul {
    padding-left: 1rem;
    margin: 0;
}

.cost-item li {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Course Analysis */
.course-analysis {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.analysis-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid var(--secondary-color);
}

.analysis-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.analysis-item p {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* State Colleges */
.state-colleges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.state-group {
    background-color: var(--light-bg);
    padding: 1.25rem;
    border-radius: 8px;
    border-top: 3px solid var(--primary-color);
}

.state-group h4 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.state-group ul {
    padding-left: 1rem;
    margin: 0;
}

.state-group li {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* State Exams */
.state-exams {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.state-exam {
    background-color: var(--light-bg);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.state-exam h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.state-exam p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Prep Tips */
.prep-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.tip-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.tip-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.tip-item ul {
    padding-left: 1rem;
    margin: 0;
}

.tip-item li {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Selection Criteria */
.selection-criteria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.criteria-item {
    background-color: var(--light-bg);
    padding: 1.25rem;
    border-radius: 8px;
    text-align: center;
    border-top: 3px solid var(--secondary-color);
}

.criteria-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.criteria-item p {
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

/* Career Section */
.career-section h4 {
    color: var(--primary-color);
    margin-top: 1.5rem;
}

.career-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.career-section li {
    margin-bottom: 0.5rem;
}

/* Admission Info */
.admission-info h4 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
}

.admission-info ul, .admission-info ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.admission-info li {
    margin-bottom: 0.5rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--light-bg);
    font-weight: 600;
    color: var(--dark-color);
}

tr:hover {
    background-color: rgba(230, 179, 61, 0.05);
}

/* College List */
.college-list {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.college-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.college-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.college-item p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Exam List */
.exam-list {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.exam-item {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid var(--secondary-color);
}

.exam-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.exam-item p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.featured-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

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

.featured-content {
    padding: 1.5rem;
}

.featured-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.featured-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.featured-stats span {
    background-color: var(--light-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--text-dark);
}
.featured-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-link:hover .featured-card {
    box-shadow: var(--shadow-hover); /* optional hover effect */
    transform: translateY(-2px);     /* optional */
}

/* FAQ Section */
.faq-container {
    margin: 1.5rem 0;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    background-color: var(--light-bg);
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(230, 179, 61, 0.1);
}

.faq-question h4 {
    margin: 0;
    font-size: 1rem;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 1rem 1.5rem;
    max-height: 200px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}




/* Sidebar Styles - Fixed scrolling behavior */
.sidebar {
    width: 350px;
    border-left: 1px solid #e9ecef;
    /* Removed sticky positioning - will be added by JavaScript */
    position: relative;
    align-self: start;
}

/* Class to make sidebar sticky when needed */
.sidebar.sticky-at-end {
display: none;
}


.sidebar-content {
    padding: 18px;
    position: static;
    overflow: visible;
    max-height: none;
}
.sticky-sidebar-wrapper {
    display: none;
    position: sticky;
    top: 185px;
    width: 350px;
    z-index: 1;
    padding-left: 18px;
    border-left: 1px solid #e9ecef;
}

.sticky-sidebar-wrapper.show {
    display: block;
}

.sidebar-card h3{
    margin: 0;
}
.sidebar-card li{
    margin: 0;
}

.qiii,
.fiiiii {
    position: relative; 
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 18px;
    margin-bottom: 16px;
    width: 100%;
}




.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sidebar-card h3 {
    color: #2d3748;
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 13px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 7px;
    line-height: 1.3;
}

/* Quick Info Styles */
.quick-info {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-item:last-child {
    border-bottom: none;
}

.label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.8125rem;
}

.value {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.8125rem;
}

/* Rankings Styles */
.rankings {
    display: flex;
    flex-direction: column;
    gap: 11px;
}


/* Author Info Styles */
.author-info {
    display: flex;
    gap: 13px;
    align-items: flex-start;
}

.author-avatar i {
    font-size: 45px;
    color: #3b82f6;
}

.author-details h4 {
    margin: 0 0 4px 0;
    color: #1e293b;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
}

.author-details p {
    margin: 0 0 7px 0;
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.author-bio {
    font-style: italic;
}

.author-credentials {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 7px;
}

.author-credentials span {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 3px 7px;
    border-radius: 12px;
    font-size: 0.6875rem;
    font-weight: 500;
}

/* Ad Banner Styles */
.ad-banner-card {
    padding: 0;
    overflow: hidden;
}

.ad-banner-card h3 {
    padding: 13px 18px 9px;
    margin-bottom: 0;
}

.ad-banner {
    position: relative;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.banner-content {
    padding: 13px 18px 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.banner-content h4 {
    margin: 0 0 7px 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
}

.banner-content p {
    margin: 0 0 11px 0;
    font-size: 0.8125rem;
    opacity: 0.9;
    line-height: 1.4;
}

.banner-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.banner-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}
/* Related Links Styles */
.related-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.related-links li a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.8125rem;
    padding: 7px 0;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.related-links li a:hover {
    color: #3b82f6;
    padding-left: 7px;
}

.related-links li a i {
    font-size: 0.625rem;
    color: #3b82f6;
}

/* CTA Card Styles */
.cta-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-card h3 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.2);
}

.cta-card p {
    margin-bottom: 18px;
    opacity: 0.9;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.cta-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    z-index: auto;
    width: 100%;
      text-decoration: none !important;     /* Ã¢â€ Â removes underline */
    appearance: none; 
}

.cta-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .sidebar {
        width: 300px;
    }
    
    .sidebar-content {
        padding: 13px;
    }
    
    .sidebar-card {
        padding: 13px;
    }
}

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    
    .sidebar {
        position: static !important;
        width: 100%;
    }
    
    .sidebar-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.375rem;
    }
}

@media (max-width: 768px) {
    .sidebar-content {
        grid-template-columns: 1fr;
    }
}



/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Modal Box */
.modal-content {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

/* Close Button */
.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.75rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}
.close:hover {
    color: #000;
}

/* Headings & Paragraph */
.modal-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #222;
}
.modal-content p {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 0.95rem;
}

/* Form Grid */
.help-form {
    display: grid;
    gap: 1rem;
}

/* Inputs and Selects */
.help-form input,
.help-form select {
    padding: 0.65rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    width: 100%;
    transition: border-color 0.2s ease;
}
.help-form input:focus,
.help-form select:focus {
    border-color: #007bff;
    outline: none;
}

/* Terms Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    font-size: 0.85rem;
    color: #444;
    gap: 0.5rem;
}
.form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

/* Link in Label */
.form-checkbox a {
    color: #007bff;
    text-decoration: underline;
}
.form-checkbox a:hover {
    text-decoration: none;
}

/* Submit Button */
.help-form button {
    background-color: #f7b500;
    color: #000;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s ease;
}
.help-form button:hover {
    background-color: #e0a800;
}

/* Fade animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* ---------------------- */
/* 🔁 Mobile Adjustments  */
/* ---------------------- */
@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem 1rem;
        border-radius: 8px;
    }

    .modal-content h3 {
        font-size: 1.25rem;
    }

    .modal-content p {
        font-size: 0.9rem;
    }

    .help-form input,
    .help-form select {
        font-size: 0.9rem;
    }

    .form-checkbox {
        font-size: 0.8rem;
        flex-direction: row;
        align-items: center;
    }

    .help-form button {
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
    }
}





/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        order: -1;
        position: static;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.375rem;
    }
    
    .course-grid,
    .semester-breakdown,
    .featured-grid,
    .emerging-courses,
    .assessment-grid,
    .admission-types,
    .timeline,
    .cost-breakdown,
    .state-colleges,
    .state-exams,
    .prep-tips,
    .selection-criteria {
        grid-template-columns: 1fr;
    }
    
    .header-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
    
    
    .ad-banner {
        padding: 1rem;
    }
    
    .ad-banner .ad-content h4 {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .page-header {
        padding: 1rem 1rem;
    }
    
    .sidebar-section {
        padding: 1rem;
    }
    
    .course-card,
    .college-item,
    .exam-item,
    .emerging-item,
    .assessment-item,
    .cost-item,
    .analysis-item {
        padding: 1rem;
    }
    
    .featured-content {
        padding: 1rem;
    }
    
    p {
        font-size: 0.875rem;
    }
    
    .ad-card {
        padding: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Links */
a {
    color: var(--secondary-color);
    transition: var(--transition);
}

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

/* Lists */
ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Focus states for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading state for images */
img {
    max-width: 100%;
    height: auto;
    transition: var(--transition);
}

img:hover {
    opacity: 0.9;
}

.comparison-table {
  width: 100%;
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Optional: prevents squishing */
}

.comparison-table th,
.comparison-table td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  white-space: nowrap; /* Optional: prevents text wrap */
}

@media (max-width: 768px) {
  .comparison-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
    .main-content {
    order: 1; /* Show first */
  }

  .sidebar {
    order: 2; /* Show second */
  }
  .content-wrapper{
    margin-top: 1rem;
  }
}

/* Responsive tables */
.responsive-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

.responsive-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* forces horizontal scroll if screen is narrower */
}

.responsive-table th,
.responsive-table td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid #ddd;
  white-space: nowrap;
}


/* Footer */
/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 1rem 0 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: 1.75rem;
}

.footer-section {
  flex: 1 1 15%; /* Each section takes up ~15% */
}
.footer-section p{
    font-size: 16px;
    color: #fff;
}
.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: white;
}

.footer-section h3 {
  color: #E6B33D !important;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.875rem;
  line-height: 1.4;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.75rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
  font-size: 0.8125rem;
}
.footer-bottom p{
color: #9ca3af;
}