/* CSS Variables for Brand Colors */
: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;
    line-height: 1.5;
    color: var(--text-dark);
    font-size: 1rem;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}
.container-1{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* 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;
}

.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;
  }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 45px;
    color: var(--white);
    margin-top: 50px;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
    url('https://home.iitd.ac.in/images/gallery/gallery-lg1.jpg') center/cover no-repeat;
    z-index: 0;
}

.hero * {
    position: relative;
    z-index: 2;
}

.hero-overlay {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.15;
}

.hero p {
    font-size: 1.1875rem;
    margin-bottom: 2.75rem;
    opacity: 0.9;
    line-height: 1.4;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.75rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Main Content */
.main-content {
    padding: 3.5rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2.75rem;
    align-items: start;
}

.content-left {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Horizontal TOC Bar */
.toc-row {
    position: sticky;
    top: 85px; /* adjust if you have a fixed navbar above */
    z-index: 999; /* should be above other elements */
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    overflow-x: auto;
    white-space: nowrap;
}

.toc-scroll {
    max-width: 1200px;
    margin: 0 auto;
}

.toc-list-horizontal {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.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);
}


/* Content Sections */
.content-section {
    padding: 2.25rem;
    border-bottom: 1px solid var(--border-color);
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    color: var(--dark-color);
    font-size: 2rem;
    margin-bottom: 1.375rem;
    position: relative;
    padding-bottom: 0.5rem;
    line-height: 1.2;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.section-content h3 {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin: 1.375rem 0 1rem;
    line-height: 1.3;
}

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

.section-content ul {
    margin-left: 1.375rem;
    margin-bottom: 1rem;
}

.section-content li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9375rem;
    line-height: 1.4;
}

/* Ad Sections */
.ad-section {
    margin: 1.75rem 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.ad-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.ad-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.375rem;
    margin-bottom: 1.75rem;
}

.highlight-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    text-align: center;
}

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

.highlight-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.375rem;
}

.highlight-card h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    line-height: 1.3;
}

.highlight-card p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

/* Accreditation Section */
.accreditation-section {
    background: var(--light-bg);
    padding: 1.75rem;
    border-radius: 8px;
    margin-top: 1.75rem;
}

.accreditation-list {
    list-style: none;
    margin-left: 0;
}

.accreditation-list li {
    padding: 0.6875rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9375rem;
}

.accreditation-list li:last-child {
    border-bottom: none;
}

/* Programs Container */
.programs-container {
    display: flex;
    flex-direction: column;
    gap: 2.75rem;
}

.program-category h3 {
    color: var(--dark-color);
    font-size: 1.4375rem;
    margin-bottom: 1.375rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    line-height: 1.3;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.375rem;
}

.program-card {
    background: var(--light-bg);
    padding: 1.375rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

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

.program-card h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
    line-height: 1.3;
}

.program-card p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.6875rem;
    line-height: 1.4;
}

.program-tag {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.25rem 0.6875rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Popular Courses */
.popular-courses-grid {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.course-detail-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    gap: 1.375rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.course-detail-card:hover {
    box-shadow: var(--shadow-hover);
}

.course-rank {
    background: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    font-weight: 700;
    flex-shrink: 0;
}

.course-info h4 {
    color: var(--dark-color);
    margin-bottom: 0.6875rem;
    font-size: 1.1875rem;
    line-height: 1.3;
}

.course-stats {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.course-stats span {
    background: var(--white);
    padding: 0.4375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    border: 1px solid var(--border-color);
}

.course-specializations {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Admission Process */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.375rem;
    margin-bottom: 2.75rem;
}

.step {
    display: flex;
    gap: 1.375rem;
    align-items: flex-start;
}

.step-number {
    background: var(--secondary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1rem;
}

.step-content h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
    line-height: 1.3;
}

.step-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.4;
}

/* Important Dates */
.important-dates-section {
    background: var(--light-bg);
    padding: 1.75rem;
    border-radius: 8px;
    margin-bottom: 1.75rem;
}

.dates-table {
    overflow-x: auto;
}

.dates-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.dates-table th,
.dates-table td {
    padding: 0.875rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9375rem;
}

.dates-table th {
    background: var(--white);
    font-weight: 600;
    color: var(--dark-color);
}

.status {
    padding: 0.25rem 0.6875rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status.completed {
    background: var(--success-color);
    color: var(--white);
}

.status.ongoing {
    background: var(--warning-color);
    color: var(--dark-color);
}

/* Eligibility */
.eligibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.375rem;
}

.eligibility-card {
    background: var(--light-bg);
    padding: 1.375rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.eligibility-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.0625rem;
    line-height: 1.3;
}

/* Cutoff Tables */
.cutoff-table-container {
    overflow-x: auto;
    margin-bottom: 1.75rem;
}

.cutoff-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cutoff-table th,
.cutoff-table td {
    padding: 0.875rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9375rem;
}

.cutoff-table th {
    background: var(--dark-color);
    color: var(--white);
    font-weight: 600;
}

.cutoff-table tbody tr:hover {
    background: var(--light-bg);
}

/* Trend Cards */
.trend-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.375rem;
}

.trend-card {
    background: var(--white);
    padding: 1.375rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.trend-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.0625rem;
    line-height: 1.3;
}

/* Placement Stats */
.placement-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.375rem;
    margin-bottom: 2.75rem;
}

.stat-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.375rem;
}

.stat-info h3 {
    color: var(--dark-color);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-info p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

/* Branch Placement Table */
.branch-placement-table {
    overflow-x: auto;
    margin-bottom: 1.75rem;
}

.branch-placement-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.branch-placement-table th,
.branch-placement-table td {
    padding: 0.875rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9375rem;
}

.branch-placement-table th {
    background: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
}

/* Recruiters */
.recruiters-category {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.recruiter-group h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    line-height: 1.3;
}

.company-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6875rem;
}

.company-tag {
    background: var(--white);
    color: var(--text-dark);
    padding: 0.4375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.company-tag:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Fee Structure */
.fee-table-container {
    overflow-x: auto;
    margin-bottom: 1.75rem;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.fee-table th,
.fee-table td {
    padding: 0.875rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9375rem;
}

.fee-table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.total-row {
    background: var(--light-bg);
    font-weight: 600;
}

.fee-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-bottom: 1.75rem;
}

.fee-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border-color);
}

.fee-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.0625rem;
    line-height: 1.3;
}

.fee-amount {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.fee-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Scholarship Grid */
.scholarship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.375rem;
}

.scholarship-card {
    background: var(--light-bg);
    padding: 1.375rem;
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
}

.scholarship-card h4 {
    color: var(--dark-color);
    margin-bottom: 0.6875rem;
    font-size: 1.0625rem;
    line-height: 1.3;
}

.scholarship-amount {
    background: var(--success-color);
    color: var(--white);
    padding: 0.4375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}

/* FAQ Section */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.faq-question:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.faq-question h4 {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.3;
}

.faq-question i {
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
    padding: 1.375rem;
    max-height: 200px;
}

/* Reviews Section */
.reviews-overview {
    margin-bottom: 1.75rem;
}

.rating-summary {
    background: var(--light-bg);
    padding: 1.75rem;
    border-radius: 12px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.75rem;
    align-items: center;
}

.overall-rating {
    text-align: center;
}

.rating-number {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1.1;
}

.stars {
    color: var(--primary-color);
    font-size: 1.375rem;
    margin: 0.5rem 0;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-bar span:first-child {
    min-width: 100px;
    font-weight: 500;
    font-size: 0.9375rem;
}

.bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition);
}

.rating-bar span:last-child {
    min-width: 30px;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9375rem;
}

/* Review Cards */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.review-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info h4 {
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    font-size: 1.0625rem;
    line-height: 1.3;
}

.reviewer-info p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-rating .stars {
    color: var(--primary-color);
    font-size: 1rem;
}

.review-rating span {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9375rem;
}

.review-content {
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9375rem;
}

.review-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--light-bg);
    color: var(--secondary-color);
    padding: 0.25rem 0.6875rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* 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;
}

.qiii,
.fiiiii {
    position: relative;   /* Ã¢Ââ€” No sticky here */
    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;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.rank {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #3b82f6;
    min-width: 60px;
}

.rank-desc {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.4;
}

/* 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);
}

/* Popular Articles Styles */
.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.popular-item {
    display: flex;
    gap: 11px;
    padding-bottom: 13px;
    border-bottom: 1px solid #f1f5f9;
}

.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.article-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content h4 {
    margin: 0 0 4px 0;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.article-content h4 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-content h4 a:hover {
    color: #3b82f6;
}

.article-date {
    font-size: 0.6875rem;
    color: #94a3b8;
}

/* News List Styles */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.news-item {
    padding-bottom: 13px;
    border-bottom: 1px solid #f1f5f9;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-date {
    display: block;
    font-size: 0.6875rem;
    color: #3b82f6;
    font-weight: 500;
    margin-bottom: 4px;
}

.news-item h4 {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.news-item h4 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-item h4 a:hover {
    color: #3b82f6;
}

/* Study Resources Styles */
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.resource-category h4 {
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1.3;
}

.resource-category h4 i {
    color: #3b82f6;
}

.resource-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-category li {
    margin-bottom: 5px;
}

.resource-category li a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.8125rem;
    padding: 3px 0;
    display: block;
    transition: color 0.2s ease;
    line-height: 1.4;
}

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

/* Contact Info Styles */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.contact-item {
    display: flex;
    gap: 11px;
    align-items: flex-start;
}

.contact-item i {
    color: #3b82f6;
    font-size: 0.9375rem;
    margin-top: 2px;
    width: 16px;
}

.contact-item div {
    font-size: 0.8125rem;
    line-height: 1.4;
}

.contact-item strong {
    color: #374151;
    display: block;
    margin-bottom: 2px;
}

.contact-item a {
    color: #3b82f6;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Social Media Styles */
.social-media {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-btn.facebook {
    background: #f0f7ff;
    color: #1877f2;
}

.social-btn.twitter {
    background: #f0f9ff;
    color: #1da1f2;
}

.social-btn.linkedin {
    background: #f0f7ff;
    color: #0077b5;
}

.social-btn.youtube {
    background: #fef2f2;
    color: #ff0000;
}

.social-btn.instagram {
    background: #fdf4ff;
    color: #e4405f;
}

.social-btn:hover {
    transform: translateX(4px);
    opacity: 0.8;
}

/* 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;
    }
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 2.5rem 0 1rem;
}

.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 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;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    
    .sidebar-sticky {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.375rem;
        max-height: none;
        overflow-y: visible;
    }

    .rating-summary {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
.nav-list {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1.75rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .content-section {
        padding: 1.75rem 1.375rem;
    }
    
    .sidebar-card {
        padding: 1.375rem;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .program-grid {
        grid-template-columns: 1fr;
    }
    
    .course-detail-card {
        flex-direction: column;
        text-align: center;
    }
    
    .course-stats {
        justify-content: center;
    }
    
    .process-steps .step {
        flex-direction: column;
        text-align: center;
    }
    
    .placement-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .fee-cards {
        grid-template-columns: 1fr;
    }
    
    .review-header {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
        text-align: center;
    }
    
    .hero {
        padding: 90px 0 55px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1.0625rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.375rem;
    }
    
    .content-section {
        padding: 1.375rem 1rem;
    }
    
    .content-section h2 {
        font-size: 1.625rem;
    }
    
    .sidebar-sticky {
        grid-template-columns: 1fr;
    }
    
    .toc-list {
        grid-template-columns: 1fr;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .company-logos {
        justify-content: center;
    }
    
 .footer-section {
    flex: 1 1 100%;
    max-width: 100%;
  }
    
    .cutoff-table-container,
    .dates-table,
    .fee-table-container,
    .branch-placement-table {
        font-size: 0.875rem;
    }
    
    .cutoff-table th,
    .cutoff-table td,
    .dates-table th,
    .dates-table td,
    .fee-table th,
    .fee-table td,
    .branch-placement-table th,
    .branch-placement-table td {
        padding: 0.6875rem 0.5rem;
    }
}

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

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus States for Accessibility */


/* Print Styles */
@media print {
    .header,
    .sidebar,
    .ad-section {
        display: none;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero {
        background: none;
        color: var(--text-dark);
    }
}