 
  
  /* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   Modern, Clean, Minimal UI with Smooth Animations
   ======================================== */

/* ========== LARGE TABLETS & COMPACT DESKTOPS (max-width: 1280px) ========== */
@media (max-width: 1280px) {
  /* Allow core containers to breathe on medium desktops */
  .main-nav,
  .glass-container,
  .glass-container-first,
  .footer-container {
    max-width: min(94%, 68.75rem);
  }

  .nav-right {
    gap: clamp(2rem, 3vw, 4rem);
  }

  .nav-right ul {
    gap: clamp(1rem, 2vw, 2rem);
  }

  /* Fluid grid columns before tablet breakpoints */
  .card-grid,
  .results-grid,
  .jobs-grid,
  .admit-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
  }

  .breaking-news-grid,
  .trending-section .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1rem, 2.5vw, 1.75rem);
  }

  .filter-bar {
    flex-wrap: wrap;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    justify-content: center;
  }

  .filter-btn {
    flex: 1 1 10.5rem;
    min-width: 9.5rem;
  }
}

/* ========== TABLET & SMALLER DESKTOP (max-width: 1100px) ========== */
@media (max-width: 1100px) {
  /* Container adjustments */
  .glass-container,
  .glass-container-first {
    max-width: min(92%, 64rem);
    width: 100%;
    padding: 2.5rem clamp(1.5rem, 4vw, 2.25rem);
    margin-left: auto;
    margin-right: auto;
  }

  /* Navigation adjustments */
  .main-nav {
    padding: 0.75rem clamp(1rem, 3.5vw, 1.5rem);
    max-width: min(94%, 64rem);
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav-right {
    gap: clamp(1.75rem, 3vw, 3rem);
    flex-wrap: wrap;
  }

  .nav-right ul {
    gap: clamp(1rem, 2.5vw, 1.5rem);
  }

  .nav-right li a {
    font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1rem);
    padding: 0.4rem 0.8rem;
    margin-right: 10px;
  }

  /* Fluid grid layouts */
  .results-grid,
  .jobs-grid,
  .admit-grid,
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(0.9rem, 2vw, 1.25rem);
  }

  .breaking-news-grid,
  .trending-section .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
  }

  /* Section titles */
  .section-title.centered-title {
    font-size: clamp(1.5rem, 1.1rem + 1vw, 1.8rem);
  }

  /* Breaking news and trending cards */
  .breaking-news-box,
  .trending-section .card-grid .card {
    width: 100%;
    max-width: 100%;
  }

  /* Footer */
  .footer-container {
    padding: 2rem clamp(1.5rem, 4vw, 2rem);
  }
}

/* ========== MOBILE LANDSCAPE & SMALL TABLETS (max-width: 900px) ========== */
@media (max-width: 900px) {
  body {
    padding-top: clamp(3.5rem, 3rem + 1vw, 4rem);
  }

  /* Adjust scroll offset for mobile header height */
  html {
    scroll-padding-top: 5rem;
  }

  section[id] {
    scroll-margin-top: 5rem;
  }

  /* Navigation - More compact */
  .main-nav {
    padding: 0.6rem clamp(0.9rem, 3vw, 1.2rem);
    border-radius: 1rem;
    max-width: 95%;
    justify-content: center;
  }

  .nav-left {
    gap: 0.7rem;
  }

  .nav-logo {
    height: 2rem;
    width: 2rem;
  }

  .nav-title h1 {
    font-size: 1.2rem;
  }

  .nav-right {
    gap: clamp(1rem, 2.5vw, 1.5rem);
    width: 100%;
    justify-content: center;
  }

  .nav-right ul {
    flex-wrap: wrap;
    gap: clamp(0.75rem, 2.5vw, 1rem);
    justify-content: center;
  }

  .nav-right li a {
    font-size: 0.95rem;
    padding: 0.35rem 0.7rem;
    margin-right: 5px;
  }

  /* Hide some nav items, show menu icon */
  .nav-right li:not(:first-child):not(:nth-child(2)) {
    display: none;
  }

  .search-icon-img {
    height: 2rem;
    width: 2rem;
    margin-right: 1rem;
  }

  .menu-icon-img {
    height: 3.5rem;
    display: block;
  }

  /* Container spacing */
  .glass-container,
  .glass-container-first {
    padding: 2rem 1.5rem;
    margin: 2.5rem auto;
  }

  .glass-container-first {
    margin-top: -3rem;
  }

  /* Section titles */
  .section-title.centered-title {
    font-size: 1.6rem;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
  }

  .section-icon {
    width: 2rem;
    height: 2rem;
  }

  /* Card grid - fluid columns */
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(0.85rem, 2vw, 1.1rem);
    margin-top: 3rem;
  }

  .card {
    padding: 1rem;
    min-height: 7rem;
  }

  .card-img {
    width: 4rem;
    height: 4rem;
  }

  .card-title {
    font-size: 0.9rem;
  }

  /* Filter bar */
  .filter-bar {
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem;
    margin: 1.5rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .filter-btn {
    width: 100%;
    padding: 0.6rem 1.2rem;
  }

  /* Footer */
  .footer-links {
    gap: 0.8rem;
  }

  .footer-links a {
    font-size: 1rem;
  }

  #footer-description {
    font-size: 1rem;
  }

  /* Go home button */
  .go-home-btn {
    width: 3rem;
    height: 3rem;
    bottom: 1.5rem;
    right: 1.5rem;
    margin-right: 0;
  }

  .go-home-icon {
    width: 1.3rem;
    height: 1.3rem;
  }
}

/* ========== MOBILE PORTRAIT (max-width: 700px) ========== */
@media (max-width: 700px) {
  body {
    padding-top: 3.5rem;
  }

  /* Adjust scroll offset for smaller mobile header */
  html {
    scroll-padding-top: 4.5rem;
  }

  section[id] {
    scroll-margin-top: 4.5rem;
  }

  /* Navigation - Mobile optimized */
  .main-nav {
    padding: 0.5rem 0.8rem;
    border-radius: 0.8rem;
  }

  .nav-left {
    gap: 0.5rem;
  }

  .nav-logo {
    height: 1.8rem;
    width: 1.8rem;
  }

  .nav-title h1 {
    font-size: 1.1rem;
  }

  .nav-right {
    gap: 1rem;
  }

  .nav-right ul {
    gap: 0.5rem;
  }

  /* Show only essential nav items */
  .nav-right li:not(:first-child) {
    display: none;
  }

  .search-icon-img {
    height: 1.8rem;
    width: 1.8rem;
    margin-right: 0.5rem;
  }

  .menu-icon-img {
    height: 3rem;
  }

  /* Single column layouts */
  .results-grid,
  .jobs-grid,
  .admit-grid,
  .breaking-news-grid,
  .trending-section .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-top: 2.5rem;
  }

  /* Container adjustments */
  .glass-container,
  .glass-container-first {
    max-width: 95%;
    padding: 1.5rem 1rem;
    margin: 2rem auto;
    border-radius: 1.5rem;
  }

  .glass-container-first {
    margin-top: -2rem;
  }

  /* Section spacing */
  .breaking-news-section,
  .trending-section {
    margin: 1.5rem auto;
  }

  .section-title.centered-title {
    font-size: 1.4rem;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    justify-content: center;
  }

  .section-icon {
    width: 1.8rem;
    height: 1.8rem;
  }

  /* Cards - Full width mobile friendly */
  .breaking-news-box {
    width: 100%;
    max-width: 100%;
    padding: 1rem 1.2rem;
    height: auto;
    min-height: 2.5rem;
  }

  .news-label {
    font-size: 0.85rem;
    padding: 0.2rem 0.7rem;
  }

  .breaking-news-box p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .trending-section .card-grid .card {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    gap: 0.6rem;
  }

  .trending-section .card-grid img {
    width: 2.2rem;
    height: 2.2rem;
  }

  .trending-section .card-grid .card-title {
    font-size: 0.95rem;
  }

  /* Result, job, admit boxes */
  .result-box,
  .admit-box,
  .job-box {
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .result-status,
  .admit-status,
  .job-status {
    font-size: 0.8rem;
    padding: 0.15rem 0.7rem;
    margin-left: 0;
  }

  /* Details page - Mobile */
  .details-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card-block {
    padding: 0.9rem 1rem;
  }

  .card-block h3 {
    font-size: 1rem;
  }

  #linkS {
    flex-direction: column;
    gap: 0.6rem;
  }

  #linkS a {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }

  #close {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }

  #title h1 {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  #date {
    font-size: 0.85rem;
    padding: 0.2rem 0.6rem;
  }

  #short-info {
    padding: 0.9rem 1rem;
  }

  #short-info p:first-child {
    font-size: 0.95rem;
  }

  #short-info p:last-child {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Footer - Mobile */
  .footer-container {
    padding: 1.5rem 1rem;
    margin-top: 4rem;
    border-radius: 1.5rem 1.5rem 0 0;
  }

  .main-footer {
    padding: 1.5rem 1rem;
  }

  #footerlogo {
    width: 2.5rem;
    height: 2.5rem;
  }

  .footer-title {
    font-size: 1.6rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
  }

  .footer-links a {
    font-size: 0.95rem;
    padding: 0.4rem 0.7rem;
  }

  #footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .footer-social {
    gap: 0.8rem;
  }

  .footer-social img {
    width: 1.5rem;
    height: 1.5rem;
  }

  .footer-copy {
    font-size: 0.85rem;
  }

  /* Popup menu - Mobile */
  .popup-menu-centered {
    width: 90%;
    max-width: 90vw;
    padding: 2rem 1.5rem;
    border-radius: 1.2rem;
  }

  .popup-menu-centered a {
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    border-radius: 0.7rem;
  }

  .popup-close-btn {
    top: -1.5rem;
    right: -1rem;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.3rem;
  }

  /* Search popup - Mobile */
  .search-popup-container {
    width: 95%;
    height: 85vh;
    margin: 2vh auto;
    border-radius: 0.8rem;
  }

  .search-popup-header {
    padding: 1rem;
  }

  .search-input-wrapper {
    padding: 0.6rem 1rem;
    gap: 0.6rem;
  }

  .search-popup-icon {
    width: 1.1rem;
    height: 1.1rem;
  }

  .search-input-wrapper input {
    font-size: 0.95rem;
  }

  .search-close-btn {
    font-size: 1.8rem;
    width: 1.8rem;
    height: 1.8rem;
  }

  .search-popup-content {
    padding: 1rem;
  }

  .search-section-header h3 {
    font-size: 1.1rem;
  }

  .clear-history-btn {
    font-size: 0.8rem;
  }

  .search-history-item,
  .search-result-item {
    padding: 0.7rem;
    gap: 0.6rem;
  }

  .search-result-icon {
    width: 2.2rem;
    height: 2.2rem;
  }

  .search-result-icon svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .search-history-title,
  .search-result-title {
    font-size: 0.9rem;
  }

  .search-history-subtitle {
    font-size: 0.75rem;
  }

  .search-result-category,
  .search-result-status {
    font-size: 0.7rem;
    padding: 0.12rem 0.45rem;
  }

  /* Go home button */
  .go-home-btn {
    width: 2.8rem;
    height: 2.8rem;
    bottom: 1.2rem;
    right: 1.2rem;
  }

  .go-home-icon {
    width: 1.2rem;
    height: 1.2rem;
  }
}

/* ========== SMALL MOBILE (max-width: 480px) ========== */
@media (max-width: 480px) {
  body {
    padding-top: 3rem;
  }

  /* Ultra compact navigation */
  .main-nav {
    padding: 0.4rem 0.6rem;
    border-radius: 0.7rem;
  }

  .nav-logo {
    height: 1.6rem;
    width: 1.6rem;
  }

  .nav-title h1 {
    font-size: 1rem;
  }

  .search-icon-img {
    height: 1.6rem;
    width: 1.6rem;
    margin-right: 0.3rem;
  }

  .menu-icon-img {
    height: 2.8rem;
  }

  /* Container adjustments */
  .glass-container,
  .glass-container-first {
    max-width: 96%;
    padding: 1.2rem 0.8rem;
    margin: 1.5rem auto;
    border-radius: 1.2rem;
  }

  /* Section titles */
  .section-title.centered-title {
    font-size: 1.25rem;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .section-icon {
    width: 1.6rem;
    height: 1.6rem;
  }

  /* Cards */
  .card {
    padding: 0.9rem;
    min-height: 6rem;
    gap: 0.7rem;
  }

  .card-img {
    width: 3.5rem;
    height: 3.5rem;
  }

  .card-title {
    font-size: 0.85rem;
  }

  .breaking-news-box {
    padding: 0.9rem 1rem;
  }

  .news-label {
    font-size: 0.8rem;
    padding: 0.18rem 0.6rem;
  }

  .breaking-news-box p {
    font-size: 0.9rem;
  }

  /* Result boxes */
  .result-box,
  .admit-box,
  .job-box {
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
  }

  .result-status,
  .admit-status,
  .job-status {
    font-size: 0.75rem;
    padding: 0.12rem 0.6rem;
  }

  /* Footer */
  .footer-container {
    padding: 1.2rem 0.8rem;
    margin-top: 3rem;
  }

  .main-footer {
    padding: 1.2rem 0.8rem;
  }

  #footerlogo {
    width: 2.2rem;
    height: 2.2rem;
  }

  .footer-title {
    font-size: 1.4rem;
  }

  .footer-links a {
    font-size: 0.9rem;
  }

  #footer-description {
    font-size: 0.85rem;
  }

  .footer-social img {
    width: 1.3rem;
    height: 1.3rem;
  }

  .footer-copy {
    font-size: 0.8rem;
  }

  /* Details page */
  #title h1 {
    font-size: 1.1rem;
  }

  #date {
    font-size: 0.8rem;
  }

  #linkS a {
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
  }

  .card-block {
    padding: 0.8rem 0.9rem;
  }

  .card-block h3 {
    font-size: 0.95rem;
  }

  /* Popup menu */
  .popup-menu-centered {
    width: 92%;
    padding: 1.8rem 1.2rem;
  }

  .popup-menu-centered a {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }

  /* Search popup */
  .search-popup-container {
    width: 96%;
    height: 88vh;
  }

  .search-input-wrapper input {
    font-size: 0.9rem;
  }

  .search-result-icon {
    width: 2rem;
    height: 2rem;
  }

  .search-history-title,
  .search-result-title {
    font-size: 0.85rem;
  }
}

/* ========== EXTRA SMALL MOBILE (max-width: 360px) ========== */
@media (max-width: 360px) {
  .nav-title h1 {
    font-size: 0.95rem;
  }

  .nav-logo {
    height: 1.5rem;
    width: 1.5rem;
  }

  .section-title.centered-title {
    font-size: 1.15rem;
  }

  .card-title,
  .breaking-news-box p,
  .result-box,
  .admit-box,
  .job-box {
    font-size: 0.85rem;
  }

  .glass-container,
  .glass-container-first {
    padding: 1rem 0.7rem;
  }
}

/* ========== SMOOTH ANIMATIONS & TRANSITIONS ========== */
@media (hover: hover) {
  /* Desktop hover effects */
  .card:hover,
  .breaking-news-box:hover,
  .result-box:hover,
  .admit-box:hover,
  .job-box:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(127, 83, 172, 0.22);
  }

  .nav-right li a:hover {
    transform: translateY(-1px);
  }
}

@media (hover: none) {
  /* Touch device tap animations */
  .card:active,
  .breaking-news-box:active,
  .result-box:active,
  .admit-box:active,
  .job-box:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  .nav-right li a:active {
    transform: scale(0.96);
    opacity: 0.8;
  }
}

/* ========== ACCESSIBILITY IMPROVEMENTS ========== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  .main-header,
  .footer-container,
  .go-home-btn,
  .search-popup-overlay,
  .popup-overlay {
    display: none !important;
  }

  .glass-container,
  .glass-container-first {
    box-shadow: none;
    background: white;
    border: 1px solid #ddd;
  }

  body {
    padding-top: 0;
    background: white;
  }
}
  