  
/* ========== CSS VARIABLES FOR EASY THEMING ========== */
:root {
    --primary-color: #7f53ac;
    --primary-dark: #822bd8;
    --primary-light: #b871ff;
    --accent-gradient: linear-gradient(90deg, #822bd8 20%, #a900a9 100%);
    --background-color: #e0e7eb;
    --text-dark: #23263a;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.28);
    --shadow-light: 0 0.25rem 1.25rem rgba(31, 38, 135, 0.1);
    --shadow-medium: 0 0.5rem 2rem rgba(31, 38, 135, 0.18);
    --shadow-hover: 0 0.375rem 1.5rem rgba(127, 83, 172, 0.18);
    --transition-fast: 0.18s ease;
    --transition-medium: 0.3s ease;
    --border-radius-sm: 0.5rem;
    --border-radius-md: 0.875rem;
    --border-radius-lg: 1.5rem;
    --border-radius-xl: 2rem;
}

/* ========== SMOOTH SCROLL BEHAVIOR ========== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

/* All sections should have scroll offset to avoid header overlap */
section[id] {
    scroll-margin-top: 6rem;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--background-color);
    overflow-x: hidden;
    position: relative;
    padding-top: 5rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ========== SELECTION STYLING ========== */
::selection {
    background: var(--primary-light);
    color: var(--text-light);
}

::-moz-selection {
    background: var(--primary-light);
    color: var(--text-light);
}

header {
    color: #222;
    text-align: center;
    padding-bottom: 0;
    margin-top: -3.125rem;
}

 

.header-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Professional Main Navigation */
.main-header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 68.75rem;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-light);
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
  border: 0.0625rem solid rgba(255, 255, 255, 0.19);
  will-change: transform;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.nav-title h1, .nav-left h1 {
  font-size: 1.5rem;
  color: #1329b7;
  font-weight: 700;
  margin: 0;
  font-family: "Rakkas";
  letter-spacing: 0.0625rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 6rem;
}

.nav-right ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  background: none;
}

.nav-right li a {
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  font-family: 'Inter', 'Segoe UI', 'Roboto', 'Poppins', sans-serif;
  margin-right: 15px;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  background: none;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.5px;
  text-transform: none;
}

.nav-right li a:hover {
  background: rgba(125, 96, 221, 0.12);
  color: #3f21aa;
}

.search-icon-img {
height: 2.5rem;
  width: 2.5rem;
  cursor: pointer;
  opacity: 0.7;
  margin-right: 1.5rem;
  
}

.menu-icon-img {
    height: 4.5rem;
    cursor: pointer;
    filter: brightness(0.5);
    opacity: 0.7;
}

 
 

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
}

.main-nav li a {
    color: #23263a;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.0625rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    transition: background 0.18s, color 0.18s;
    background: rgba(255, 255, 255, 0.10);
    font-size: 0.98rem;
    padding: 0.3125rem 0.5rem;
    border-radius: 0.4375rem;
}

.main-nav li a {
    position: relative;
    overflow: hidden;
}

.main-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient( 90deg, #870eac 60%, #a900a9  100%);
    transition: width 0.3s ease;
}

.main-nav li a:hover {
    transform: scale(1.02);
    color: #3b82f6;
    transition: transform 0.3s ease, color 0.3s ease;
}

.main-nav li a:hover::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Reduced gap between search and menu icon */
}

.search-icon {
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    align-self: center;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;

}

.menu-icon span {
    display: block;
    height: 0.1875rem;
    width: 100%;
    background: #23263a;
    border-radius: 0.125rem;
    transition: all 0.2s;
}

.nav-search-left {
    height: 1.25rem;
    margin-right: 0.5rem;
    vertical-align: middle;
    filter: brightness(0.5);
}

.menu-icon-img {
    height: 1.25rem;
    cursor: pointer;
    filter: brightness(0.5);
    opacity: 0.7;
    margin-left: 1rem;
}
 

.card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-top: 4.25rem;
}

.card {
    background: rgba(255, 255, 255, 0.547);
    color: rgb(0, 0, 0);
    border: 0.0625rem solid rgba(255, 255, 255, 0.18);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9375rem;
    min-height: 8.75rem;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    text-align: center;
    cursor: pointer;
    will-change: transform;
}
 
.card:hover {
    transform: translateY(-0.25rem) scale(1.03);
    box-shadow: var(--shadow-hover);
}

/* Touch device optimization */
.card:active {
    transform: scale(0.98);
}

.card-img {
    width: 5rem;
    height: 5rem;
    border-radius: 0.625rem;
    object-fit: cover;
    background: transparent;
}

.card-title {
    color: #000000;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.03125rem;
    line-height: 1.4;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.filter-bar {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0 1rem 0;
    justify-content: flex-start;
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 1.5rem;
    box-shadow: 0 0.5rem 2rem 0 rgba(31, 38, 135, 0.18);
    backdrop-filter: blur(0.75rem);
    -webkit-backdrop-filter: blur(0.75rem);
    border: 0.0625rem solid rgba(255, 255, 255, 0.28);
    margin: 2rem 1.5rem 1.5rem 1.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.35);
    color: #23263a;
    border: 0.0625rem solid rgba(255, 255, 255, 0.4);
    outline: none;
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 0.125rem 0.5rem 0 rgba(31, 38, 135, 0.10);
    backdrop-filter: blur(0.5rem);
}

.filter-btn.active,
.filter-btn:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #2d3a4b;
    box-shadow: 0 0.25rem 1rem 0 rgba(31, 38, 135, 0.18);
}

.glass-container-first{
    position: relative;
    z-index: 2;
    max-width: 68.75rem;
    margin: -5rem auto 0 auto; 
    border-radius: var(--border-radius-xl);
    background: var(--glass-bg);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(1.125rem);
    -webkit-backdrop-filter: blur(1.125rem);
    border: 0.09375rem solid var(--glass-border);
    padding: 3.75rem 3rem 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Glass container */
.glass-container {
    position: relative;
    z-index: 2;
    max-width: 68.75rem;
    margin: 3.75rem auto;
    border-radius: var(--border-radius-xl);
    background: var(--glass-bg);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(1.125rem);
    -webkit-backdrop-filter: blur(1.125rem);
    border: 0.09375rem solid var(--glass-border);
    padding: 3.75rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
 .glass-nav {
    margin-left: 0;
    margin-top: 0;
    width: 100%;
    max-width: 68.75rem;
    /* keep other styles as is */
}
/* Glass nav */
.glass-nav {
 
    backdrop-filter: blur(0.75rem);
    -webkit-backdrop-filter: blur(0.75rem);
    border-radius: 1.125rem;
    



}
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    display: flex;
    justify-content: center;
    background: transparent;
    /* No margin or padding here */
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 1.125rem;
    box-shadow: 0 0.25rem 1.25rem 0 rgba(31, 38, 135, 0.1);
    backdrop-filter: blur(0.75rem);
    border: 0.0625rem solid rgba(255, 255, 255, 0.19);
    max-width: 68.75rem;
    width: 100%;
    margin: 0 auto;
    padding: 0.75rem 2rem;
}

.glass-nav ul {
    gap: 0;
    list-style: none;
    margin: -6.25rem;
    padding: 0;
}

.glass-nav li a {
    color: #23263a;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.0625rem;
    transition: color 0.2s;
    opacity: 0.8;
}

.glass-nav li a:hover {
    color: #7f53ac;
    opacity: 1;
}

.search-icon-img {
    height: 1.375rem;
    margin-left: 2rem;
    
    filter: brightness(0.5);
    opacity: 0.7;
}

/* Glass content */
.glass-content {
    margin-top: 3.75rem;
    max-width: 26.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.glass-title {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.glass-label {
    font-size: 2.6rem;
    font-weight: 700;
    color: #23263a;
    background: rgba(127, 83, 172, 0.18);
    padding: 0.5rem 1.5rem;
    border-radius: 0.75rem;
    letter-spacing: 0.125rem;
    margin-bottom: 0.375rem;
    display: inline-block;
}

.glass-sub {
    font-size: 2.1rem;
    font-weight: 400;
    color: #23263a;
    letter-spacing: 0.125rem;
    margin-left: 0.5rem;
}

.glass-desc {
    color: #23263a;
    opacity: 0.7;
    font-size: 1rem;
    margin-bottom: 2rem;
    margin-top: 0;
}

.glass-btn {
    background: rgba(255, 255, 255, 0.45);
    border: 0.09375rem solid #23263a;
    color: #23263a;
    border-radius: 2rem;
    padding: 0.7rem 2.2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    box-shadow: 0 0.125rem 0.5rem 0 rgba(31, 38, 135, 0.10);
    backdrop-filter: blur(0.5rem);
}

.glass-btn:hover {
    background: #23263a;
    color: #fff;
    border: 0.09375rem solid #7f53ac;
}

/* Breaking News Section */
.breaking-news-section,
.trending-section {
    margin: 2rem auto 2.25rem auto;
    max-width: 68.75rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    scroll-margin-top: 6rem;
}
 
.breaking-news-title, .trending-title {
    font-size: 1.85rem;
    font-weight: 700;
   
    color: #000000;
    letter-spacing: 0.075rem;
    font-family: 'Amarante', serif;
}

 
.breaking-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.875rem;
    width: 90%;
    overflow: visible;
    position: relative;
}

.breaking-news-box {
    min-width: 0;
    max-width: 100%;
    width: 30.5625rem;
    background: rgba(255, 255, 255, 0.45);
    border-radius: var(--border-radius-md);
    padding: 1.125rem 1.5rem;
    box-shadow: var(--shadow-light);
    border: 0.09375rem solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    transition: all var(--transition-fast);
    animation: breakingNewsFadeIn 0.8s ease;
    cursor: pointer;
    margin-bottom: 0;
    height: auto;
    min-height: 2.5rem;
    will-change: transform;
}

.breaking-news-box:hover {
    background: #ffffffa9;
    color: #ffffff;
    border: 0.09375rem solid #ffffff;
    box-shadow: 0 0.375rem 1.5rem 0 rgba(0, 0, 0, 0.18);
    transform: translateY(-0.125rem) scale(1.005);
}

.breaking-news-box:hover,
.breaking-news-box:hover p {
    color: #000000;
}

.news-label {
    display: inline-block;
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #822bd8 20%, #a900a9 100%);
    border-radius: 0.375rem;
    padding: 0.25rem 0.875rem;
    margin-bottom: 0.5rem;
    align-self: flex-start;
    letter-spacing: 0.0625rem;
    box-shadow: 0 0.125rem 0.5rem 0 rgba(127, 83, 172, 0.10);
    text-transform: uppercase;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.breaking-news-box p {
    font-size: 1rem;
    color: #23263a;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.01875rem;
    line-height: 1.4;
    transition: color 0.18s;
}

/* Section Titles Centered with Icon and Theme */
.section-title.centered-title {
    display: flex;
    gap: 1rem;
    font-family: 'Rakkas', 'Amarante', 'Inter', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: #b871ff;
    letter-spacing: 0.075rem;
    margin-bottom: 1.75rem;
}

.section-title.centered-title img {
    width: 2.375rem;
    height: 2.375rem;
    vertical-align: middle;
    filter: drop-shadow(0 0.125rem 0.5rem #b871ff33);
}

.section-icon {
    width: 2.375rem;
    height: 2.375rem;
    vertical-align: middle;
    filter: drop-shadow(0 0.125rem 0.5rem #b871ff33);
}

 

/* Results Section */
.results-section {
    margin: 2.5rem 0 0 0;
    scroll-margin-top: 6rem;
}

.results-section .section-title.centered-title {
    justify-content: center;
    font-family: 'Rakkas', 'Amarante', 'Inter', sans-serif;
    color: #7f53ac;
    font-size: 2.1rem;
    margin-bottom: 1.75rem;
    gap: 0.875rem;
}

.results-section .section-icon {
    width: 2.375rem;
    height: 2.375rem;
    vertical-align: middle;
    filter: drop-shadow(0 0.125rem 0.5rem #b871ff33);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 100%;
    margin: 0 auto;
}


.result-box:hover {
    background: #ffffffba;
    color: #000000;
    border: 0.09375rem solid #ffffff;
    box-shadow: 0 0.375rem 1.5rem 0 rgba(127, 83, 172, 0.18);
    transform: translateY(-0.125rem) scale(1.03);
}

/* Result Status Badge */
.result-status {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.375rem 1rem;
    border-radius: 1.25rem;
    letter-spacing: 0.03125rem;
    transition: all 0.18s ease;
    box-shadow: 0 0.125rem 0.5rem 0 rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    flex-shrink: 0;
    background: #22c55e;
    color: #ffffff;
}

.result-status.Out,
.result-status.Active {
    background: #22c55e;
    color: #ffffff;
}

.result-status.Soon {
    background: #6b7280;
    color: #ffffff;
}

/* Cool scroll animation for results section */
@keyframes resultsPopIn {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(60px);
        filter: blur(8px);
    }

    60% {
        opacity: 1;
        transform: scale(1.03) translateY(-8px);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

 
 
.results-section {
    animation: resultsPopIn 1s cubic-bezier(.23, 1.12, .32, 1) both;
}

.results-pop {
    animation: resultsPopIn 1s cubic-bezier(.23, 1.12, .32, 1) both;
}

.sectionPopIn {
    animation: sectionPopIn 1s cubic-bezier(.23, 1.12, .32, 1) both;
}

/* Admit Cards Section */
.admit-section .section-title.centered-title,
.jobs-section .section-title.centered-title {
    justify-content: center;
    font-family: 'Rakkas', 'Amarante', 'Inter', sans-serif;
    color: #7f53ac;
    font-size: 2.1rem;
    margin-bottom: 1.75rem;
    gap: 0.875rem;
}

.admit-section .section-icon,
.jobs-section .section-icon {
    width: 2.375rem;
    height: 2.375rem;
    vertical-align: middle;
    filter: drop-shadow(0 0.125rem 0.5rem #b871ff33);
}

.admit-grid,
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 100%;
    margin: 0 auto;
}

.result-box,
.admit-box,
.job-box {
    background: rgba(255, 255, 255, 0.269);
    border-radius: var(--border-radius-sm);
    padding: 1.125rem 1.5rem;
    box-shadow: var(--shadow-light);
    border: 0.09375rem solid #b871ff40;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 0.0125rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    will-change: transform;
    min-height: 4rem;
}

.admit-box:hover,
.job-box:hover {
    background: #ffffffb3;
    color: #000000;
    border: 0.09375rem solid #ffffff;
    box-shadow: 0 0.375rem 1.5rem 0 rgba(127, 83, 172, 0.18);
    transform: translateY(-0.125rem) scale(1.03);
}

.admit-status,
.job-status {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.375rem 1rem;
    border-radius: 1.25rem;
    letter-spacing: 0.03125rem;
    transition: all 0.18s ease;
    box-shadow: 0 0.125rem 0.5rem 0 rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    flex-shrink: 0;
    background: #22c55e;
    color: #ffffff;
}

.admit-status.Available,
.admit-status.Out,
.job-status.Open,
.job-status.Start,
.job-status.Extend,
.job-status.Extended,
.result-status.Active {
    background: #22c55e;
    color: #ffffff;
}

.admit-status.Soon,
.job-status.Closed,
.job-status.Soon,
.result-status.Soon {
    background: #6b7280;
    color: #ffffff;
}

.job-status[class*="Last"],
.job-status[class*="Today"],
.job-status[class*="Date"] {
    background: #ef4444;
    color: #ffffff;
}

/* Animation for admit and jobs section */
@keyframes sectionPopIn {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(60px);
        filter: blur(8px);
    }

    60% {
        opacity: 1;
        transform: scale(1.03) translateY(-8px);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.admit-section,
.jobs-section {
    animation: sectionPopIn 1s cubic-bezier(.23, 1.12, .32, 1) both;
    scroll-margin-top: 6rem;
}

/* Universal Home Button - Always visible on all pages */
.go-home-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    border: 0.125rem solid rgba(127, 83, 172, 0.4);
    border-radius: 50%;
    width: 3.75rem;
    height: 3.75rem;
    box-shadow: 0 0.375rem 1.5rem 0 rgba(127, 83, 172, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.go-home-btn:hover {
    background: rgba(127, 83, 172, 0.95);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0.5rem 2rem 0 rgba(127, 83, 172, 0.4);
}

.go-home-btn:hover .go-home-icon {
    filter: brightness(0) invert(1) drop-shadow(0 0.125rem 0.5rem rgba(255,255,255,0.8));
}

.go-home-icon {
    width: 1.75rem;
    height: 1.75rem;
    filter: drop-shadow(0 0.125rem 0.5rem rgba(127, 83, 172, 0.3));
    transition: filter 0.3s ease;
}

 

/* Home section animation - Enhanced for visibility */
@keyframes homePopIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-40px);
        filter: blur(6px);
        box-shadow: 0 0 0 0 rgba(127, 83, 172, 0);
    }

    50% {
        opacity: 1;
        transform: scale(1.05) translateY(5px);
        filter: blur(0);
        box-shadow: 0 0.5rem 3rem 0 rgba(127, 83, 172, 0.35);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
        box-shadow: 0 0.25rem 1.25rem rgba(31, 38, 135, 0.1);
    }
}

.home-pop {
    animation: homePopIn 0.8s cubic-bezier(.34, 1.56, .64, 1) both;
}

 

 
 

 /* Add to your style.css for the improved footer */
.footer-container {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(0.75rem);
    -webkit-backdrop-filter: blur(0.75rem);
    border-top: 0.09375rem solid #b871ff33;
    margin-top: 3.75rem;
    box-shadow: 0 -0.25rem 2rem 0 rgba(127,83,172,0.06);
    
    position: relative;
    z-index: 2;
    max-width: 68.75rem;
    margin: 0px auto;
    border-radius: 2rem 2rem 0 0;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0.5rem 2rem 0 rgba(31, 38, 135, 0.18);
    backdrop-filter: blur(1.125rem);
    -webkit-backdrop-filter: blur(1.125rem);
    border: 0.09375rem solid rgba(255, 255, 255, 0.28);
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.main-footer {
    max-width: 68.75rem;
    margin: 0 auto;
    padding: 2.25rem 1.5rem 1.125rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.125rem;
}

#footer-description {
    font-size: 1.1rem;
    color: #000000;
    text-align: center;
    margin-bottom: 1rem;
    max-width: 50rem;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}
 
#footerlogo {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
}

.footer-title {
    font-family: 'Rakkas', 'Amarante', 'Inter', sans-serif;
    font-size: 2rem;
    color: #7f53ac;
    font-weight: 700;
    letter-spacing: 0.0625rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.125rem;
    justify-content: center;
}

.footer-links a {
    color: #7f53ac;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.08rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    transition: background 0.18s, color 0.18s;
}

.footer-links a:hover {
    background: linear-gradient( 90deg, #870eac 60%, #a900a9  100%);
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
}

.footer-social img {
    width: 1.75rem;
    height: 1.75rem;
    background-color: none;
    transition: transform 0.18s, box-shadow 0.18s;
}
 
 .footer-social img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0.125rem 0.5rem #b871ff33) brightness(1.2) contrast(1.2);
}
.footer-copy {
    text-align: center;
    color: #7f53ac;
    font-size: 0.98rem;
    margin-top: 0.5rem;
    font-weight: 800;
}

.footer-copy a {
    color: #9938f9;
    text-decoration: none;
    font-weight: 1000;
}
.footer-copy a:hover {
    text-decoration: underline;
}

 
/* Modern Search Bar Styling */
/* Hide input by default, show on .search-active */
.search-inline-container {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border-radius: 1.5rem;
  padding: 0.3rem 0.7rem;
  box-shadow: 0 0.25rem 1rem rgba(37, 99, 235, 0.10);
  border: 0.5px solid rgba(37, 99, 235, 0.13);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  backdrop-filter: blur(10px);
  min-width: 40px;
  width: auto;
  position: relative;
}

.search-inline-input {
  opacity: 0;
  width: 0;
  min-width: 0;
  padding: 0;
  pointer-events: none;
  border: none;
  background: transparent;
  color: #000000;
  font-size: 0.9rem;
  border-radius: 1.5rem;
  margin-right: 0;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

.search-inline-container.search-active .search-inline-input {
  opacity: 1;
  width: 150px;
  min-width: 90px;
  padding: 0.3rem 0.7rem;
  pointer-events: auto;
}

.search-icon-img {
  height: 1.1rem;
  width: 1.1rem;
  cursor: pointer;
  filter: brightness(0.7);
  opacity: 0.8;
  margin: 0;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

.search-icon-img:hover {
  filter: brightness(1);
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .search-inline-container {
    min-width: 32px;
    padding: 0.2rem 0.5rem;
  }
  .search-inline-container.search-active .search-inline-input {
    width: 60px;
    min-width: 60px;
    font-size: 0.85rem;
    padding: 0.2rem 0.5rem;
  }
  .search-icon-img {
    height: 1rem;
    width: 1rem;
  }
}

/* Responsive search bar */
@media (max-width: 768px) {
  .search-inline-container {
    min-width: 150px;
    padding: 0.4rem 0.8rem;
  }
  
  .search-inline-input {
    width: 120px !important;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem !important;
  }
  
  .search-icon-img {
    height: 1.125rem;
    width: 1.125rem;
  }
}

@media (max-width: 480px) {
  .search-inline-container {
    min-width: 120px;
    padding: 0.3rem 0.6rem;
  }
  
  .search-inline-input {
    width: 100px !important;
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem !important;
  }
  
  .search-icon-img {
    height: 1rem;
    width: 1rem;
  }
}
 



/* Popup menu styles */
.popup-menu {
  display: none;
  position: absolute;
  top: 3.75rem;
  right: 0.75rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 2rem 0 rgba(31,38,135,0.18);
  z-index: 999;
  min-width: 12.5rem;
  padding: 0.75rem 0;
}
 .popup-menu ul {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 0;
  margin: 0;
}

.popup-menu li {
  width: 100%;
  border-bottom: 0.0625rem solid #eee;
}

.popup-menu li:last-child {
  border-bottom: none;
}

.popup-menu a {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  color: #23263a;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  background: none;
  text-align: left;
  transition: background 0.18s, color 0.18s;
}

.popup-menu a:hover {
  background: #f5f5f5;
  color: #7f53ac;
  
}
 

 
 
.popup-menu {
  display: none;
}
.popup-menu.active {
  display: block;
}
.trending-section h2{
    font-size: 1.5rem;
    margin-left: 2.8125rem;
    margin-top: 0.625rem;
    margin-bottom: -1.875rem;
}
.trending-section .card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.875rem;
    width: 90%;
    overflow: visible;
    position: relative;
    margin-top: 0.625rem;
}

.trending-section .card-grid .card {
    min-width: 0;
    max-width: 100%;
    width: 30.5625rem;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 0.875rem;
    padding: 1.125rem 1.5rem;
    box-shadow: 0 0.125rem 0.75rem 0 rgba(127, 83, 172, 0.10);
    border: 0.09375rem solid #ffffff40;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s, transform 0.18s;
    cursor: pointer;
    margin-bottom: 0;
    min-height: auto;
    text-align: left;
    gap: 0.75rem;
}

.trending-section .card-grid .card:hover {
    background: #ffffffa9;
    color: #ffffff;
    border: 0.09375rem solid #ffffff;
    box-shadow: 0 0.375rem 1.5rem 0 rgba(0, 0, 0, 0.18);
    transform: translateY(-0.125rem) scale(1.005);
}

.trending-section .card-grid .card:hover,
.trending-section .card-grid .card:hover .card-title {
    color: #000000;
}

.trending-section .card-grid img {
    width: 2.375rem;
    height: 2.375rem;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.trending-section .card-grid .card-title {
    font-size: 1rem;
    color: #23263a;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.01875rem;
    line-height: 1.4;
    transition: color 0.18s;
}

.footer-container{
    margin-top: 6.25rem;
    margin-bottom: -6.25rem;
}

.results-grid,
.jobs-grid,
.admit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 100%;
    margin: 0 auto;
}

/* Remove any potential arrow characters */
.main-nav::before,
.main-nav::after,
.nav-right::before,
.nav-right::after {
  content: none !important;
}

/* Ensure no extra content in nav elements */
.nav-right li::before,
.nav-right li::after {
  content: none !important;
}
 
 

 
/* Centered Popup Menu */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.094);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay.active {
  display: flex;
  opacity: 1;
}

.popup-menu-centered {
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgb(255, 255, 255);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: scale(0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 90vw;
  width: 450px;
  animation: popupMenuAppear 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

@keyframes popupMenuAppear {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popup-overlay.active .popup-menu-centered {
  transform: scale(1);
}

.popup-menu-centered ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.popup-menu-centered li {
  width: 100%;
}

.popup-menu-centered a {
  display: block;
  padding: 1rem 1.5rem;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  font-family: 'Inter', sans-serif;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.729);
}

.popup-menu-centered a:hover {
  background: rgba(255, 255, 255, 0.682);
  border-color: rgb(255, 255, 255);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.popup-close-btn {
  position: absolute;
  top: -2rem;
  right: -2rem;
  background: rgba(255, 255, 255, 0.161);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.757);
  font-size: 1.5rem;
  cursor: pointer;
  color: #000;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.popup-close-btn:hover {
  background: rgba(255, 255, 255, 0.608);
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
 
 

 
/* ========== MODERN SEARCH POPUP (Spotify Style) ========== */
.search-icon-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.search-icon-img {
    margin-right: 15px;
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    transition: transform var(--transition-medium);
    filter: brightness(0);
}

.search-icon-img:hover {
    transform: scale(1.1);
}

.search-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.111);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.search-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.search-popup-container {
    width: 100%;
    max-width: 50rem;
    height: 80vh;
    margin: auto;
    background: rgba(255, 255, 255, 0.647);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-medium);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideDown var(--transition-medium) ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-popup-header {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-xl);
    padding: 0.75rem 1.25rem;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-popup-icon {
    width: 1.25rem;
    height: 1.25rem;
    opacity: 0.8;
    filter: brightness(0);
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: rgb(0, 0, 0);
    font-size: 1rem;
    font-weight: 500;
}

.search-input-wrapper input::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

.search-close-btn {
    background: transparent;
    border: none;
    color: rgb(0, 0, 0);
    font-size: 2rem;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform var(--transition-medium);
}

.search-close-btn:hover {
    transform: scale(1.2);
}

.search-popup-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    background: transparent;
}

.search-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.search-section-header h3 {
    color: rgb(0, 0, 0);
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
}

.clear-history-btn {
    background: transparent;
    border: none;
    color: rgba(9, 8, 8, 0.7);
    font-size: 0.875rem;
    cursor: pointer;
    transition: color var(--transition-medium);
}

.clear-history-btn:hover {
    color: rgb(0, 0, 0);
}

.search-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-history-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-medium);
}

.search-history-item:hover {
    background: rgba(255, 255, 255, 0.944);
    transform: translateX(5px);
}

.search-history-item img {
    width: 3rem;
    height: 3rem;
    border-radius: 0.375rem;
    object-fit: cover;
}

.search-history-info {
    flex: 1;
    overflow: hidden;
}

.search-history-title {
    color: rgb(0, 0, 0);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-history-subtitle {
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.8rem;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-medium);
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.838);
    border-color: rgb(255, 255, 255);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-result-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.95) 0%, 
                rgba(255, 255, 255, 0.85) 50%,
                rgba(255, 255, 255, 0.75) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 
                0 2px 6px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 1),
                inset 0 -1px 2px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-result-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.search-result-item:hover .search-result-icon {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 
                0 4px 10px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 1);
}

.search-result-item:hover .search-result-icon::before {
    opacity: 1;
}

.search-result-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-result-item:hover .search-result-icon svg {
    transform: scale(1.1);
}

.search-result-info {
    flex: 1;
    overflow: hidden;
}

.search-result-title {
    color: rgb(0, 0, 0);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-category {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: rgb(0, 0, 0);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.search-result-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #22c55e;
    color: #ffffff;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 0.125rem 0.375rem 0 rgba(0, 0, 0, 0.1);
}

.search-result-status.soon,
.search-result-status.Soon {
    background: #6b7280;
}

/* Scrollbar Styling for Search Popup */
.search-popup-content::-webkit-scrollbar {
    width: 8px;
}

.search-popup-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.search-popup-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: background var(--transition-fast);
}

.search-popup-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}

/* ========== ADDITIONAL UTILITY CLASSES ========== */

/* Prevent text selection on interactive elements */
.card,
.breaking-news-box,
.result-box,
.admit-box,
.job-box,
.nav-right li a,
.search-icon-img,
.menu-icon-img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: none;
}

/* Loading state animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========== PERFORMANCE OPTIMIZATIONS ========== */

/* GPU acceleration for smoother animations */
.card,
.breaking-news-box,
.result-box,
.admit-box,
.job-box,
.go-home-btn,
.popup-menu-centered,
.search-popup-container {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Smooth font rendering */
body,
.card-title,
.nav-right li a,
.footer-title {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
