:root {
    --primary: #003366;
    --secondary: #8a1538;
    --accent: #f8c100;
    /* --light: #f5f5f5; */
    --light: #ffffff;
    --dark: #333;
    --gray: #6c757d;
    --blueocean: #37b8eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social-icon {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Header */
header {
    background-position: right;
    background-image: url('/assets/pills.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-color: var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
}

.logo-text h1 {
    color: var(--light);
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.logo-text span {
    color: var(--blueocean);
    font-size: 1.2rem;
    font-weight: 800;
}

/* Navigation */
nav {
    background-color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    background-color: var(--blueocean) !important;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* update for default bootstrap toogle button to improve its view for small devices*/
.navbar-toggler {
    border: none !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0.5rem;
}

/* Remove focus/active outlines */
.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Make the 3-line icon white and thicker */
.navbar-toggler-icon {
    filter: brightness(0) invert(1);
    width: 2em;           /* slightly wider */
    height: 3px;          /* thicker lines */
    background-size: contain;
}

.main-menu {
    display: flex;
    list-style: none;
    flex-direction: row;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.3s;
}

.main-menu a:hover {
    background-color: rgba(255,255,255,0.1);
}

.search-form {
    display: flex;
    align-items: center;
    padding: 8px;
}

.search-form input {
    padding: 6px 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
}

.search-form button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 31vw;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    padding-top: 10%;
    color: white;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--accent);
    font-weight: bold;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.hero-slide {
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-item {
    height: 31vw;
    background-size: contain;
    background-position: center;
}

.carousel-inner {
    object-fit: contain;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--accent);
    color: var(--dark);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e6b000;
}

/* Main Content */
main {
    padding: 30px 0;
}

.quick-links2 {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;

    
}

.quick-link2 {
    
    background-color: #cff3ff;
    flex: 1;
    min-width: 180px;
    text-align: center;
    justify-content: center;
    transition: transform 0.3s;

    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.quick-link-header {
    background-color: #2e6194;
    padding: 5px;
    border-radius: 8px;
}

.quick-links a {
    flex: 1;
    min-width: 180px;
    background-color: rgba(117, 221, 255, 0.349);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
    text-decoration: none;
}

.quick-link-content {
    padding: 15px;
    display: flex;
    align-items: center; /* Center content */
    justify-content: center; /* Center content vertically */
    color: var(--primary);
    font-size: 1.1rem;
}

.quick-link2 i {
    font-size: 1.8rem;
    color: var(--light);
    margin-bottom: 5px;
    display: block;
}

.quick-links2 a {
    color: var(--light);
    flex: 1;
    text-align: center;
    transition: transform 0.5s;
    text-decoration: none;
}

.quick-link2:hover {
    transform: translateY(-5px);
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.quick-links a {
    flex: 1;
    min-width: 180px;
    background-color: rgba(117, 221, 255, 0.349);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
    text-decoration: none;
}

.quick-link:hover {
    transform: translateY(-5px);
}

.quick-link i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.mission-vision {
    background-color:  rgb(221, 244, 252);
}

.quick-link h3 {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 1.1rem;
}

.quick-link p {
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Featured Stories Layout for Large Screens */
.quick-links1 {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.quick-link1 {
    background-color: #cff3ff;
    flex: 1;
    min-width: 180px;
    /* padding: 15px; */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align:left;
    transition: transform 0.3s;

      /* background: rgba(255, 255, 255, 0.15); transparent white */
  backdrop-filter: blur(12px);            /* frosted glass blur */
  -webkit-backdrop-filter: blur(12px);    /* Safari support */
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.quick-link1:hover {
    transform: translateY(-5px);
}

.quick-link1 img {
    max-height: 240px;
    width: 100%;
    margin-bottom: 10px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    object-fit: cover; /* Ensure image fills without stretching */
}

.quick-link-content1 {
    padding-left: 10px;
    display: flex;
    flex-direction: column; /* Stack title, description, and button vertically */
    align-items: left; /* Center content */
}


.story-title1 {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 1.1rem; /* Original title size */
    font-weight: bold;
}

.story-text1 {
    font-size: 0.875rem; /* Original description size */
    line-height: 1.6;
    margin-bottom: 8px;
}

.read-more1.btn {
    display: inline-block;
    padding: 8px 20px; /* Original button padding */
    background-color: rgb(13 110 253); /* Original button background */
    color: var(--light); /* Original button text color */
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px; /* Original button border-radius */
    font-size: 0.9rem; /* Original button font size */
    transition: background-color 0.3s;
}

.read-more-link{
    color: var(--primary); /* Bluish color (#003366) */
    font-style: italic; /* Italicized text */
    background: none; /* Remove button background */
    padding: 0; /* Remove button padding */
    border: none; /* Remove any border */
    border-radius: 0; /* Remove border-radius */
    transition: color 0.3s ease; /* Smooth color transition on hover */
}

.read-more1.btn:hover {
    background-color: #0004e6a9; /* Original button hover color */
    color: var(--light); /* Original button text color */
}

/* .main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
} */

/* .announcements, .events {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px;  
} */

.section-header {
    font-size: 1.9rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 0px;
}

.section-header h2 {
    color: var(--primary);
    font-size: 1.2rem;
}

.view-all {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.8;
}

.announcement-item, .event-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.announcement-item a, .event-item a {
    text-decoration: none;
    color: inherit;
}

.announcement-item:last-child, .event-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.announcement-date, .event-date {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.announcement-title, .event-title {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.announcement-excerpt, .event-location {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.events-image{
    height: 80px; 
    float: left; 
    padding-right: 10px;
}

/* Stats Section */
.stats {
    background-image: url('/assets/blueback.jpeg');
    color: white;
    padding: 40px 0;
    margin: 30px 0;
    opacity: 0.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--accent);
}

.stat-item p {
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Footer */
footer {
    background-image: url('/assets/footerback2.png');
    background-repeat: no-repeat;
    background-size: cover;
    color: rgb(7, 74, 150);
    padding: 40px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: var(--accent);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a,
.footer-links li {
    color: rgb(2, 39, 95);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    font-weight: bold;
}

.footer-links h5 {
    border-bottom: 2px solid rgb(2, 39, 95);
    display: inline-block;
    padding-bottom: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgb(2, 39, 95);
}

.footer-links a:hover {
    padding: 2px;
    border-radius: 2px;
    background-color: var(--blueocean);
    color: #ffffff;
    font-weight: bold;
    transition: 0.3s;
}

.contact-details p {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 15px 0;
    text-align: center;
    font-size: 0.85rem;
}

.line {
    height: 10px;
    width: 100%;
    background-color: rgb(1 150 250);
    border: none;
    margin: 0;
    padding: 0;
    opacity: 0.7;
}

.nav-links {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    color: white;
    text-decoration: none;
    background-color: transparent;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin-right: 10px;
    font-size: large;
}

.nav-links:hover,
.nav-links:focus {
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links.active {
    color: #d0f308;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.nav-links.disabled {
    color: #cccccc;
    pointer-events: none;
    cursor: default;
}

/* Additional Styles for Blade File Sections */
.welcome-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.welcome{
    background-image: url('/assets/quicklinkback.jpg');
    padding-top: 2rem;
    padding-bottom: 2rem;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.welcome-text {
    font-size: 1rem;
    line-height: 1.6;
}

.welcome-text strong {
    font-size: 1rem;
}

.map-title {
    font-size: 1.25rem;
    font-weight: 500;
}

.about-title {
    font-size: 1.75rem;
    font-weight: 600;
}

.about-subtitle {
    font-size: 1rem;
    line-height: 1.6;
}

.about-card-title {
    font-size: 1.125rem;
    font-weight: 500;
}

.about-card-text {
    font-size: 0.875rem;
    line-height: 1.6;
}

.quick-link-title {
    font-size: 1.1rem;
    font-weight: 500;
}

.quick-link-text {
    font-size: 0.875rem;
    line-height: 1.6;
}

.announcement-header, .event-header, .story-header {
    font-size: 1.4rem;
    font-weight: 600;
}

.story-title {
    font-size: 1.1rem;
    font-weight: 500;
}

.story-text {
    font-size: 0.875rem;
    line-height: 1.6;
}

.stat-title {
    font-size: 2rem;
    font-weight: 600;
}

.stat-text {
    font-size: 0.875rem;
    line-height: 1.6;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .read-more-link{
        font-size: 0.85rem; /* Smaller text size */
    }

    .apply-now-btn{
        font-size: 0.75rem !important; /* Smaller text size */
        padding: 6px 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links a,
    .footer-links li {
        margin: 0px;
        color: rgb(2, 39, 95);
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.3s;
    }

    .main-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 31vw;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .read-more-link{
        font-size: 0.8rem; /* Smaller text size */
    }

    .apply-now-btn{
        font-size: 0.7rem !important; /* Smaller text size */
        padding: 5px 12px;
    }

    .contact-info {
        flex-direction: column;
        gap: 8px;
    }

    .logo img {
        height: 40px;
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .logo-text span {
        font-size: 0.8rem;
    }

    .nav-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .main-menu.active {
        display: flex;
    }

    .main-menu a {
        padding: 10px;
        font-size: 0.9rem;
    }

    .menu-toggle {
        display: block;
    }

    .search-form {
        width: 100%;
        padding: 10px 0;
    }

    .search-form input {
        width: 100%;
    }

    .quick-links {
        flex-direction: column;
        align-items: center;
    }

    .quick-link {
        width: 100%;
        max-width: 300px;
    }

    /* Featured Stories Layout for Small Devices */
    .quick-links1 {
        flex-direction: column; /* Keep stories stacked vertically */
    }

    /* .quick-link1 {
        background-color: #deeaf7;
        display: flex; 
        flex-direction: row; 
        align-items: stretch; 
        width: 100%;
        max-width: 100%; 
        padding: 10px;
        margin-bottom: 15px; 
    } */

    

    .quick-link-content1 {
        margin: 0;
        text-align: justify;
        flex: 1; /* Take remaining space */
        display: flex;
        flex-direction: column; /* Stack title, description, and link vertically */
        justify-content: space-between; /* Spread content to use full height */
        min-height: 90px; /* Ensure enough height to match image */
    }

    .story-title1 {
        font-size: 0.875rem; /* Adjust title size for small screens */
        margin-bottom: 5px; /* Space below title */
        order: 1; /* Ensure title is at the top */
    }

    .story-text1 {
        text-align: justify;
        font-size: 0.75rem; /* Adjust description size */
        margin-bottom: 5px; /* Space below description */
        order: 2; /* Description in the middle */
        flex-grow: 1; /* Allow description to take available space */
    }

    .read-more1.btn {
        font-size: 0.75rem; /* Smaller text size */
        color: var(--primary); /* Bluish color (#003366) */
        font-style: italic; /* Italicized text */
        background: none; /* Remove button background */
        padding: 0; /* Remove button padding */
        border: none; /* Remove any border */
        border-radius: 0; /* Remove border-radius */

        align-self: flex-start; /* Align link to the left */
        order: 3; /* Ensure link is at the bottom */
        transition: color 0.3s ease; /* Smooth color transition on hover */
    }

    .events{
        margin: 5px;
    }

    .section-header{
        padding: 0px;
        margin-top: 0;
        font-size: 1.5rem;
    }

    .welcome{
        padding: 1rem !important;
        margin: 0 !important;
    }

    .section-header h2 {
        font-size: 1rem;
    }

    .hero {
        height: 31vw;
    }

    .hero-content {
        padding: 15px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

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

    .btn {
        padding: 6px 15px;
        font-size: 0.85rem;
    }

    /* Font Responsiveness for Blade Sections */
    .welcome-title {
        font-size: 1.25rem;
    }

    .welcome-text {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .welcome-text strong {
        font-size: 0.875rem;
    }

    .map-title {
        font-size: 1.125rem;
    }

    .map-section iframe {
        height: 300px;
    }

    .about-title {
        font-size: 1.5rem;
    }

    .about-subtitle {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .about-card-title {
        font-size: 1rem;
    }

    .about-card-text {
        font-size: 0.8125rem;
        line-height: 1.4;
    }

    .quick-link-title {
        font-size: 0.875rem;
    }

    .quick-link-text {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .announcement-header, .event-header, .story-header {
        font-size: 1.2rem;
    }

    .events-image{
        height: 70px; 
        float: left; 
        padding-right: 18px;
    }

    .view-all {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0.7rem;
}

    .story-title {
        font-size: 0.875rem;
    }

    .story-text {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .stat-title {
        font-size: 1.5rem;
    }

    .stat-text {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .quick-link img {
        max-height: 180px;
    }

    .footer-links a {
        color: rgb(2, 39, 95);
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.3s;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .container {
        padding: 0 8px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .read-more-link{
        font-size: 0.75rem; /* Smaller text size */
    }

    .apply-now-btn{
        font-size: 0.65rem !important; /* Smaller text size */
        padding: 4px 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .carousel-item{
        height: 31vw
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .logo {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-buttons {
        width: 100%;
    }

    .header-buttons .btn {
        display: block;
        text-align: center;
    }

    .top-bar {
        font-size: 0.75rem;
    }

    .social-icon {
        font-size: 0.8rem;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .logo-text span {
        font-size: 0.75rem;
    }

    .main-menu a {
        font-size: 0.8125rem;
        font-weight: 400;
    }

    .nav-links {
        font-size: 0.8125rem;
        font-weight: 400;
    }

    .search-form input, .search-form button {
        font-size: 0.75rem;
    }

    .hero-content h2 {
        font-size: 1.25rem;
        font-weight: 600;
    }

    .hero-content p {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .btn {
        font-size: 0.75rem;
        font-weight: 500;
    }

    .quick-link h3 {
        font-size: 0.875rem;
        font-weight: 500;
    }

    .quick-link p {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .quick-link i {
        font-size: 1.5rem;
    }

    .section-header{
        padding: 0px;
        margin-top: 0;
        font-size: 1.4rem;
    }

    .section-header h2 {
        font-size: 0.87rem;
        font-weight: 600;
    }

    .announcement-title, .event-title {
        font-size: 0.8125rem;
        font-weight: 500;
    }

    .announcement-excerpt, .event-location {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .announcement-date, .event-date {
        font-size: 0.7rem;
    }
    

    .view-all {
        font-size: 0.75rem;
    }

    .stat-item h3 {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .stat-item p {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .footer-column h3 {
        font-size: 0.875rem;
        font-weight: 500;
    }

    .footer-links a, .contact-details p {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .footer-bottom {
        font-size: 0.7rem;
    }

    /* Blade-specific sections */
    .welcome-title {
        font-size: 1.125rem;
    }

    .welcome-text {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .welcome-text strong {
        font-size: 0.75rem;
    }

    .map-title {
        font-size: 1rem;
    }

    .map-section iframe {
        height: 250px;
    }

    .about-title {
        font-size: 1.25rem;
    }

    .about-subtitle {
        font-size: 0.75rem;
    }

    .about-card-title {
        font-size: 0.875rem;
    }

    .about-card-text {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .quick-link-title {
        font-size: 0.8125rem;
    }

    .quick-link-text {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .announcement-header, .event-header, .story-header {
        font-size: 1.125rem;
    }

    .events-image{
        height: 65px; 
        float: left; 
        padding-right: 15px;
    }

    .story-title {
        font-size: 0.8125rem;
    }

    .story-text {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .stat-title {
        font-size: 1.25rem;
    }

    .stat-text {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .quick-link img {
        max-height: 150px;
    }
}

@media (max-width: 400px) {
    body {
        font-size: 0.8125rem;
        line-height: 1.3;
    }

    .read-more-link{
        font-size: 0.7rem; /* Smaller text size */
    }

    .apply-now-btn{
        font-size: 0.6rem !important; /* Smaller text size */
        padding: 3px 8px;
    }

    .top-bar {
        font-size: 0.7rem;
    }

    .social-icon {
        font-size: 0.75rem;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .logo-text span {
        font-size: 0.7rem;
    }

    .main-menu a {
        font-size: 0.75rem;
    }

    .nav-links {
        font-size: 0.75rem;
    }

    .search-form input, .search-form button {
        font-size: 0.7rem;
    }

    .hero-content h2 {
        font-size: 1.125rem;
    }

    .hero-content p {
        font-size: 0.7rem;
        display: none;
    }

    .btn {
        font-size: 0.7rem;
    }

    .quick-link h3 {
        font-size: 0.8125rem;
    }

    .quick-link p {
        font-size: 0.7rem;
    }

    .quick-link i {
        font-size: 1.3rem;
    }

    .section-header{
        padding: 0px;
        margin-top: 0;
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 0.7rem;
    }

    .announcement-title, .event-title {
        font-size: 0.75rem;
    }

    .announcement-excerpt, .event-location {
        font-size: 0.7rem;
    }

    .announcement-date, .event-date {
        font-size: 0.65rem;
    }

    .view-all {
        font-size: 0.7rem;
    }

    .stat-item h3 {
        font-size: 1.25rem;
    }

    .stat-item p {
        font-size: 0.7rem;
    }

    .footer-column h3 {
        font-size: 0.8125rem;
    }

    .footer-links a, .contact-details p {
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.65rem;
    }

    /* Blade-specific sections */
    .welcome-title {
        font-size: 1rem;
    }

    .welcome-text {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .welcome-text strong {
        font-size: 0.7rem;
    }

    .map-title {
        font-size: 0.875rem;
    }

    .map-section iframe {
        height: 200px;
    }

    .about-title {
        font-size: 1.125rem;
    }

    .about-subtitle {
        font-size: 0.7rem;
    }

    .about-card-title {
        font-size: 0.8125rem;
    }

    .about-card-text {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .quick-link-title {
        font-size: 0.75rem;
    }

    .quick-link-text {
        font-size: 0.65rem;
        line-height: 1.3;
    }

    .announcement-header, .event-header, .story-header {
        font-size: 1rem;
    }

    .events-image{
        height: 55px; 
        float: left; 
        padding-right: 10px;
    }

    .story-title {
        font-size: 0.75rem;
    }

    .story-text {
        font-size: 0.65rem;
        line-height: 1.3;
    }

    .stat-title {
        font-size: 1.125rem;
    }

    .stat-text {
        font-size: 0.65rem;
    }

    .quick-link img {
        max-height: 120px;
    }
}


/* @media only screen and (min-width: 768px) {
  .topheader {
    background-color: #0055A4;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .topheader div a {
    color: white;
    margin-right: 10px;
    text-decoration: none;
  }
  .topheader div a:last-child {
    margin-right: 0;
  }
}

@media only screen and (max-width: 767px) {
  .topheader {
    display: none;
  }
} */



.topheader {
  background-color: var(--blueocean);
  color: white;
  padding: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.topheader div {
  margin: 0;
  font-size: 12px;
}

.topheader div:first-child {
  margin-left: 0;
}

.topheader div:last-child {
  margin-right: 0;
}

.topheader div a {
  color: white;
  margin-right: 10px;
  text-decoration: none;
}

.topheader div a:last-child {
  margin-right: 0;
}

@media only screen and (max-width: 767px) {
  .topheader {
    display: none;
  }
}

@media only screen and (min-width: 768px) {
  .topheader {
    display: flex;
  }
}

.image-frame {
    max-height: 400px; max-width: 250px;
    display: inline-block;
    padding: 10px;                 /* Space between image and frame edge */
    background: white;             /* Frame color */
    box-shadow: 
    0 4px 6px rgba(0,0,0,0.3),   /* Outer shadow */
    inset 0 0 5px rgba(0,0,0,0.1); /* Inner shadow for depth */
    border: 8px solid white;       /* Frame thickness */
}

.image-frame img {
  display: block;
  max-width: 250px;              /* Image size */
  height: auto;
  border: 1px solid #ccc;        /* Thin border inside */
}

    .apply-now-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: var(--primary);
        color: white;
        padding: 15px 25px;
        border-radius: 50px;
        font-size: 16px;
        font-weight: bold;
        text-decoration: none;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
        animation: bounce 2s infinite;
        transition: background-color 0.3s ease;
        z-index: 9999;
    }

    .apply-now-btn:hover {
        background-color: var(--blueocean);
    }

        @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateY(0);
        }
        40% {
            transform: translateY(-10px);
        }
        60% {
            transform: translateY(-5px);
        }
    }



/* .navbar-nav .nav-item.active > .nav-links {
    background-color: var(--light); 
    border-radius: 5px; 
    color: var(--dark); 
    font-weight: 700; 
} */

.navbar-nav .nav-item.active {
    background-color: var(--light); /* Bootstrap primary color for background */
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    color: var(--dark); /* Bootstrap primary color for text */
    font-weight: 700; /* bolder font for active */
    padding-top: 5px;
}

.navbar-nav .nav-item.active > .nav-links {
    color: var(--dark);
}


/* -------------------------------------------------
   FLOATING TOP-RIGHT BUTTON – TEXT GLOW ONLY
   ------------------------------------------------- */

.top-right-glow-btn {
    position: fixed;
    top: 26%;          /* ← top instead of bottom */
    right: 2px;        /* ← same right */
    /* background-color: var(--primary, #00bfff); */
    color: white;
    padding: 12px 11px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    animation: float 2s infinite ease-in-out;
    transition: all 0.3s ease;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Hover lift */
.top-right-glow-btn:hover {
    transform: translateY(-2px);
    animation-duration: 1.5s;
}

/* -------------------------------------------------
   GLOWING TEXT ONLY
   ------------------------------------------------- */

.top-right-glow-btn .glow-text {
    position: relative;
    color: #fba401;
    text-shadow: 
         0 0 6px #fba30167,
         0 0 12px #fba30154;
    transition: text-shadow 0.3s ease;
}

/* Pulsing neon layer (behind text only) */
.top-right-glow-btn .glow-text::before {
    content: attr(data-text);
    position: absolute;
    left: 0; top: 0;
    color: transparent;
    text-shadow: 
         0 0 10px #fba401,
         0 0 20px #fba401,
         0 0 Plaintiffs40px #fba401;
    opacity: 0;
    animation: textPulse 1.8s infinite ease-in-out;
    pointer-events: none;
    z-index: -1;
}

/* Hover: stronger & faster glow */
.top-right-glow-btn:hover .glow-text {
    text-shadow: 
         0 0 10px #fba401,
         0 0 20px #fba401,
         0 0 40px #fba401;
}
.top-right-glow-btn:hover .glow-text::before {
    animation-duration: 0.9s;
}

/* -------------------------------------------------
   ANIMATIONS
   ------------------------------------------------- */

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

@keyframes textPulse {
    0%   { opacity: 0; transform: scale(1); }
    50%  { opacity: 0.85; }
    100% { opacity: 0; transform: scale(1.03); }
}

#global-loading {
    background: rgba(255, 255, 255, 0.95);
}
.dark #global-loading {
    background: rgba(0, 0, 0, 0.9);
}
.dark #global-loading .text-primary { color: #0d6efd !important; }