    /* === GLOBAL STYLES === */
    body {
      font-family: 'Poppins', sans-serif;
      margin: 0;
      padding: 0;
      background: #f5f6fa;
      color: #333;
    }
    
     html {
        scroll-behavior: smooth;
    }

    /* Target Section Offset */
    #faculties-section {
        scroll-margin-top: 80px; 
    }

    /* === HERO CORE STYLES === */
    .hero-banner {
        width: 100%;
        position: relative;
        /* Force container and background to stay locked together */
        height: 40vh;
        min-height: 400px;
        background-image: url('../images/pickawood.jpg');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        display: flex;
        flex-direction: column;
        overflow: hidden; /* Prevents background bleed */
    }

    .hero-overlay {
        width: 100%;
        height: 100%;
        flex: 1; /* Ensures overlay fills exactly the banner height */
        background: rgba(10, 20, 40, 0.85);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        box-sizing: border-box;
    }

    .hero-content {
        max-width: 850px;
        width: 100%;
        text-align: center;
        color: white;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
        font-weight: 800;
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .highlight { color: #FFD700; }

    .hero-content p {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        margin-bottom: 25px;
        opacity: 0.9;
        line-height: 1.4;
        max-width: 600px;
        margin: 0 auto 25px auto;
    }

    /* === BUTTONS === */
    .hero-buttons {
        display: flex;
        gap: 15px;
        justify-content: center;
        margin-bottom: 30px;
        flex-wrap: wrap;
    }

    .btn-primary, .btn-outline {
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.60rem !important; /* Reduced from 0.85 to 0.75 + Forced */
    text-transform: uppercase;
    transition: 0.3s ease;
}

    .btn-primary { background: #FFD700; color: #000; }
    .btn-outline { background: rgba(255, 255, 255, 0.1); color: white; border: 1px solid rgba(255, 255, 255, 0.4); }

    /* === STATS SECTION === */
    .hero-stats {
        display: flex;
        justify-content: center;
        gap: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 20px;
    }

    .stat-num { font-size: 1.3rem; font-weight: 800; color: #FFD700; }
    .stat-label { font-size: 0.65rem; text-transform: uppercase; opacity: 0.8; }

    /* === TABLET (iPad/Medium Screens) === */
    @media (max-width: 768px) {
        .hero-banner {
            height: 350px; /* Specific height to match content */
            min-height: 350px;
        }
        .hero-content h1 { font-size: 1.8rem; }
    }

    /* === MOBILE PHONES (Standard Resolution) === */
    @media (max-width: 480px) {
        .hero-banner {
            height: 320px; /* Lock height to prevent background overflow */
            min-height: 320px;
        }
        .hero-overlay { padding: 15px; }
        .hero-content h1 { font-size: 1.5rem; }
        .hero-content p { font-size: 0.85rem; margin-bottom: 15px; }
        .hero-buttons { gap: 10px; margin-bottom: 20px; }
        .btn-primary, .btn-outline { padding: 10px 20px; font-size: 0.75rem; }
        .hero-stats { gap: 15px; padding-top: 15px; }
    }

    /* === VERY SMALL PHONES (360px and below) === */
    @media (max-width: 360px) {
        .hero-banner {
            height: auto; /* Allow growth only if text is long */
            min-height: 300px;
        }
        .hero-buttons {
            flex-direction: column;
            width: 100%;
            align-items: center;
        }
        .btn-primary, .btn-outline { width: 85%; text-align: center; }
        .stat-num { font-size: 1.1rem; }
    }

    /* === EXTREME SMALL RESOLUTION (280px) === */
    @media (max-width: 280px) {
        .hero-banner {
            min-height: 380px; /* Height increases slightly to fit stacked content */
        }
        .hero-stats {
            flex-wrap: wrap;
            justify-content: space-around;
        }
        .stat-item { width: 40%; margin-bottom: 10px; }
    }

    @keyframes slide {
      0% { margin-left: 0; }
      20% { margin-left: 0; }
      25% { margin-left: -100%; }
      45% { margin-left: -100%; }
      50% { margin-left: -200%; }
      70% { margin-left: -200%; }
      75% { margin-left: -300%; }
      95% { margin-left: -300%; }
      100% { margin-left: 0; }
    }
    
    /* 1. This centers the marquee on the page like the rest of your site */
.marquee-wrapper {
    max-width: 1130px;
    margin: 10px auto; /* Centers it and adds space top/bottom */
    background: #007bff; /* FUL Blue */
    color: white;
    border-radius: 8px; /* Optional: makes it look modern */
    overflow: hidden; /* Clips the text at the 1100px edges */
    border-bottom: 3px solid #FFD700; /* Gold accent */
}

/* 2. The container that hides the text until it enters the 'window' */
.marquee-container {
    padding: 12px 0;
    position: relative;
    width: 100%;
}

/* 3. The actual moving text block */
.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee-move 30s linear infinite;
}

/* 4. Style for each message */
.marquee-content span {
    padding: 0 40px; /* Space between messages */
    font-weight: 500;
    white-space: nowrap;
}

/* 5. THE MOVEMENT LOGIC (Right to Left) */
@keyframes marquee-move {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Moves exactly half so it loops forever */
    }
}

/* 6. Pause when user hovers */
.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

/* Updated Animation with Webkit support for mobile WebViews */
.marquee-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: max-content;
    -webkit-animation: marquee-move 30s linear infinite;
    animation: marquee-move 30s linear infinite;
}

@-webkit-keyframes marquee-move {
    0% { -webkit-transform: translateX(0); }
    100% { -webkit-transform: translateX(-50%); }
}

@keyframes marquee-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
    
    
/* === UNIFIED CARD STYLE - App download === */
.section-wrapper {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.custom-card {
    max-width: 1140px;
    width: 90%; 
    margin: 0 auto;
    padding: 40px 25px;
    border-radius: 15px;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease; /* Smooth transition when resizing */
}

.bg-blue { background: #1A73E8; color: white; }
.bg-dark-blue { background: #0d47a1; color: white; }

.flex-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

/* Base Button Style for Desktop/Tablet */
.btn-main, .btn-outline-white {
    min-width: 250px;
    padding: 14px 25px;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
    display: inline-block;
}

.btn-main { background: #FFD700; color: #000; }
.btn-outline-white { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.4); }

/* ============================================================
   STRATEGIC MEDIA QUERIES (1200px down to 150px)
   ============================================================ */

/* 1. TABLET & SMALL LAPTOPS (992px to 768px) */
@media (max-width: 992px) {
    .custom-card {
        width: 95%; /* Expand card width slightly */
        padding: 35px 20px;
    }
    .btn-main, .btn-outline-white {
        min-width: 200px; /* Slightly smaller buttons */
        font-size: 0.85rem;
    }
}

/* 2. STANDARD MOBILE PHONES (767px to 320px) */
@media (max-width: 767px) {
    .custom-card {
        padding: 30px 15px;
    }
    .btn-main, .btn-outline-white {
        width: 100%; /* Buttons stack vertically and fill width */
        min-width: unset; /* Remove the 250px restriction */
    }
    .flex-buttons {
        gap: 10px;
    }
}

/* 3. EXTREME MICRO-SCREENS (Below 320px down to 150px) */
@media (max-width: 320px) {
    .custom-card {
        width: 98%; /* Use almost full width */
        padding: 20px 10px; /* Minimal padding to save space */
        border-radius: 10px; /* Sharper corners look better on tiny screens */
    }
    
    h3 {
        font-size: 1.1rem !important; /* Scale down titles */
    }
    
    p {
        font-size: 0.8rem !important; /* Scale down description */
    }

    .btn-main, .btn-outline-white {
        padding: 10px 5px; /* Thin buttons */
        font-size: 0.75rem; /* Smallest readable text */
        border-radius: 5px; /* Match card radius */
    }
    
    /* Ensure long words don't break the layout */
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}
    
    /* === WELCOME SECTION === */
    /*.welcome-section {*/
    /*  background: #ffffff;*/
    /*  padding: 10px 20px;*/
    /*  max-width: 1100px;*/
      /*margin-top: 20px;*/
    /*  margin: 20px auto 30px;*/
    /*  border-radius: 15px;*/
    /*  box-shadow: 0 4px 10px rgba(0,0,0,0.05);*/
    /*  text-align: center;*/
    /*  line-height: 1.8;*/
    /*}*/

    /*.welcome-section h2 {*/
    /*  color: #007bff;*/
    /*  font-size: 1.5em;*/
    /*  margin-bottom: 5px;*/
    /*  margin-top: 0;*/
    /*  font-weight: 600;*/
    /*}*/

    /*.welcome-section p {*/
    /*  color: #444;*/
    /*  font-size: 0.8em;*/
    /*  text-align: justify;*/
    /*  padding: 0 10px;*/
    /*}*/

    /* === MAIN SECTION === */
    main {
      padding: 20px;
      text-align: center;
    }
    .main-subjects {
      background: #ffffff;
      padding: 10px 20px;
      max-width: 1100px;
      margin: 0 auto 30px;
      border-radius: 15px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.05);
      text-align: center;
      line-height: 1.8;
    }

    .fac {
      font-size: 1.8em;
      margin-bottom: 10px;
      margin-top: 0;
    }

    p.subtext {
      font-size: 1em;
      color: #666;
      margin-bottom: 25px;
    }

    .subjects ul {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 15px;
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .subject-box {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: #fff;
      padding: 25px 10px;
      border-radius: 15px;
      text-decoration: none;
      color: #333;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
    }

    .subject-box:hover {
      background: #007bff;
      color: #fff;
      transform: translateY(-5px);
    }

    .subject-box img {
      width: 40px;
      height: 40px;
      margin-bottom: 10px;
    }

    /* === NAVIGATION SECTION === */
    .navigation {
      background: #ffffff;
      margin: 50px auto;
      padding: 40px 25px;
      max-width: 1100px;
      border-radius: 15px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.05);
      text-align: left;
      margin-top: 0;
    }

    .navigation h2 {
      color: #007bff;
      text-align: center;
      margin-bottom: 25px;
      font-size: 1.2em;
      font-weight: 600;
      margin-top: 0;
    }

    .navigation ol {
      counter-reset: step;
      padding-left: 20px;
      color: #333;
      line-height: 1.8;
    }

    .navigation ol li {
      margin-bottom: 12px;
      font-size: 1.0em;
    }

    .navigation strong {
      color: #007bff;
    }
    
    /* === STUDY HUB SECTION === */
.study-hub-container {
    max-width: 1140px;
    margin: 0 auto 30px;
    padding: 0 20px;
    transition: all 0.3s ease; /* Smooth scaling */
}

.study-hub-card {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(0,123,255,0.2);
}

.hub-text { flex: 1; min-width: 300px; text-align: left; }
.hub-text h2 { margin: 0 0 10px 0; font-size: 1.5rem; color: #FFD700; }
.hub-text p { margin: 0; opacity: 0.9; font-size: 0.95rem; line-height: 1.5; }
.hub-actions { display: flex; gap: 15px; flex-wrap: wrap; }

.hub-btn {
    background: white;
    color: #007bff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
}

.hub-btn:hover { background: #FFD700; color: #000; transform: translateY(-3px); }

/* ============================================================
   STRATEGIC MEDIA QUERIES (1200px down to 150px)
   ============================================================ */

/* 1. TABLETS & SMALL LAPTOPS (992px to 768px) */
@media (max-width: 992px) {
    .study-hub-container {
        padding: 0 15px;
    }
    .hub-text {
        min-width: 250px;
    }
}

/* 2. STANDARD MOBILE (768px to 321px) */
@media (max-width: 768px) {
    .hub-text { 
        text-align: center; 
        min-width: 100%; /* Force text to top */
    }
    .hub-text h2 {
        font-size: 1.3rem;
    }
    .hub-actions { 
        justify-content: center; 
        width: 100%; 
    }
    .hub-btn { 
        width: 100%; 
        padding: 14px; /* Larger tap target for mobile */
    }
}

/* 3. EXTREME MICRO-SCREENS (320px down to 150px) */
@media (max-width: 320px) {
    .study-hub-container {
        padding: 0 8px; /* Tight side margins */
    }
    .study-hub-card {
        padding: 20px 10px; /* Minimal internal padding */
        border-radius: 10px;
    }
    .hub-text h2 {
        font-size: 1.1rem; /* Scaled down heading */
    }
    .hub-text p {
        font-size: 0.8rem; /* Scaled down description */
    }
    .hub-btn {
        font-size: 0.75rem;
        padding: 10px 5px;
        border-radius: 5px;
    }
    .hub-actions {
        gap: 8px;
    }
    /* Prevents layout breaking on long words */
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

   /* === PROFESSIONAL FOOTER === */
    footer {
        background: #101828; /* Deep professional navy/black */
        color: #EAECF0;
        padding: 60px 0 30px;
        font-family: 'Inter', sans-serif;
    }

    .footer-container {
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 20px;
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 40px;
    }

    .footer-col h4 {
        color: #FFD700; /* Gold accent for headings */
        font-size: 1.1rem;
        margin-bottom: 20px;
        font-weight: 700;
    }

    .footer-col p {
        font-size: 0.9rem;
        line-height: 1.6;
        color: #98A2B3;
    }

    .footer-col ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-col ul li {
        margin-bottom: 12px;
    }

    .footer-col ul li a {
        color: #98A2B3;
        text-decoration: none;
        font-size: 0.9rem;
        transition: 0.3s;
    }

    .footer-col ul li a:hover {
        color: #FFD700;
        padding-left: 5px;
    }

    .footer-bottom {
        max-width: 1100px;
        margin: 40px auto 0;
        padding: 30px 20px 0;
        border-top: 1px solid #1D2939;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-bottom p {
        font-size: 0.85rem;
        color: #667085;
    }

    /* Mobile Responsiveness */
    @media (max-width: 768px) {
        .footer-container {
            grid-template-columns: 1fr 1fr;
        }
    }

    @media (max-width: 480px) {
        .footer-container {
            grid-template-columns: 1fr;
            text-align: center;
        }
        .footer-bottom {
            flex-direction: column;
            text-align: center;
        }
    }
    
    .pwa-content img {
        width: 50px;       /* This keeps it small and neat */
        height: 50px;      /* Keep it a perfect square */
        object-fit: cover; /* Ensures the shield isn't stretched */
        border-radius: 10px; 
        border: 1px solid #eee; /* Adds a subtle professional border */
    }
    
    /* Also, let's limit the whole banner width so it's not giant on tablets */
    .pwa-banner {
        max-width: 400px;  /* Keeps the banner from stretching too wide */
        margin: 0 auto;    /* Centers it on the screen */
    }
    
    .pwa-banner.show {
        bottom: 20px; /* Slides up into view */
    }
    
    .pwa-content {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .pwa-text {
        flex: 1;
    }
    
    .pwa-text strong {
        font-size: 0.95rem;
        color: #333;
    }
    
    .pwa-text p {
        margin: 0;
        font-size: 0.8rem;
        color: #666;
    }
    
    #pwa-install-btn {
        background: #007bff;
        color: white;
        border: none;
        padding: 8px 15px;
        border-radius: 6px;
        font-weight: bold;
        font-size: 0.85rem;
    }
    
    #pwa-close {
        font-size: 22px;
        color: #999;
        cursor: pointer;
        padding-left: 5px;
    }
    
    
