
/* --- Normal Size Quick Link Grid --- */
.quick-link-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 boxes in a row */
    gap: 15px;
    margin: 25px auto;
    max-width: 1100px; /* Wider container for normal look */
    padding: 0 15px;
}

.grid-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 85px; /* Restored to normal height */
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 18px; /* Larger, readable text */
    text-transform: uppercase;
    border-radius: 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.grid-box:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

/* Colors for the Grid Boxes */
.link-results { background: linear-gradient(135deg, #1d976c, #93f9b9); }
.link-jobs    { background: linear-gradient(135deg, #eb3349, #f45c43); }
.link-admit   { background: linear-gradient(135deg, #003366, #0056b3); }
.link-forms   { background: linear-gradient(135deg, #f09819, #edde5d); }

/* --- Professional 3-Column Portal --- */
.portal-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

.modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 columns on desktop */
    gap: 15px;
}

.card {
    background: #fff;
    border: 1px solid #0b4a8f; /* Blue border to match your theme */
    border-radius: 4px;
    text-align: left;
}

.card-header {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    font-size: 18px;
}

/* Column Header Colors */
.header-results { background-color: #2e7d32; } /* Green */
.header-admit   { background-color: #0d47a1; } /* Blue */
.header-jobs    { background-color: #d32f2f; } /* Red */

.link-group a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #0b4a8f;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px dotted #ccc;
}

.link-group a:hover {
    background-color: #fff9c4; /* Subtle highlight on hover */
    color: #ff0000;
}

.view-all {
    text-align: center;
    background: #f8f9fa;
    color: #333 !important;
    font-weight: bold !important;
}

/* Responsive Fix for Mobile */
@media (max-width: 768px) {
    .quick-link-grid.small-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 on phones */
    }
    .modern-grid {
        grid-template-columns: 1fr; /* Stack columns on top of each other */
    }
}


.main-header {
    background-color: #000000; /* Matches your logo background */
    padding: 10px 0;           /* Small gap at top/bottom */
    width: 100%;
}

.logo-container {
    display: flex;
    justify-content: center;   /* Centers the logo */
    align-items: center;
    width: 100%;
}

.full-width-logo {
    /* LOGO SIZE SETTINGS */
    width: 100%;               /* Fills the container width */
    max-width: 800px;          /* Prevents it from getting too huge on big screens */
    height: auto;              /* Keeps the shape perfect (no stretching) */
    display: block;
    margin: 0 auto;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .full-width-logo {
        max-width: 95%;        /* Takes up almost the whole screen on phones */
    }
}
/* Maintainable Theme Variables */
:root {
    --main-blue: #0b4a8f;
    --box-border: #2196F3;
    --red-header: #0b4a8f;
    --maroon-header: #0b4a8f;
    --ticker-yellow: #ffeb3b;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: Arial, sans-serif; }
body { background-color: var(--white); text-align: center; }

/* Header & Logo Scaling */
.site-header { background-color: var(--main-blue); border-bottom: 4px solid #ff4500; }
.logo-fill-container { padding: 15px 10px 5px; }
.main-logo { width: 100%; max-width: 650px; height: auto; display: block; margin: 0 auto; }
.tagline { color: var(--ticker-yellow); font-size: 13px; font-weight: bold; padding: 5px 0 10px; }

/* Navigation */
.nav-menu { background: #000; padding: 12px 0; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; }
.nav-links a { color: var(--white); text-decoration: none; font-weight: bold; font-size: 14px; text-transform: uppercase; }

/* Ads Configuration */
.ad-box { margin: 15px auto; background: #f4f4f4; border: 1px dashed #ccc; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ad-label { color: #888; font-size: 10px; font-weight: bold; }

/* Quick Link Grid (4 Blue Boxes) */
.quick-link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 1000px; margin: 20px auto; padding: 0 15px; }
.grid-box { 
    background: var(--white); color: #000; padding: 35px 5px; text-decoration: none; 
    font-weight: bold; font-size: 18px; border: 8px solid var(--box-border); transition: 0.3s;
}
.grid-box:hover { background: #e3f2fd; }

/* 3 Column Portal Layout */
.portal-columns { display: flex; gap: 10px; max-width: 1200px; margin: 0 auto; padding: 20px 10px; }
.column-box { flex: 1; border: 1px solid #ddd; background: var(--white); }
.col-header { color: var(--white); padding: 12px; font-size: 20px; }
.header-red { background-color: var(--red-header); }
.header-maroon { background-color: var(--maroon-header); }

/* Dotted List Links */
.link-items { list-style: none; padding: 10px; text-align: left; }
.link-items li { padding: 10px 0 10px 22px; border-bottom: 1px dotted #ccc; position: relative; }
.link-items li::before { content: "•"; color: var(--main-blue); font-size: 20px; position: absolute; left: 0; top: 6px; }
.link-items a { text-decoration: none; color: var(--main-blue); font-weight: bold; font-size: 14px; }
.view-more { color: red !important; }

/* Footer */
.news-ticker { background: var(--ticker-yellow); padding: 8px; font-weight: bold; border-bottom: 1px solid #000; }
.site-footer { background: var(--main-blue); color: var(--white); padding: 40px 20px; margin-top: 30px; }
.footer-nav a { color: var(--ticker-yellow); text-decoration: none; margin: 0 10px; }

/* Responsive Media Queries */
@media (min-width: 769px) { .ad-top, .ad-mid, .ad-bottom { width: 728px; height: 90px; } }
@media (max-width: 768px) {
    .ad-top { width: 320px; height: 100px; }
    .ad-mid { width: 300px; height: 250px; }
    .ad-bottom { width: 320px; height: 50px; }
    .quick-link-grid { grid-template-columns: 1fr 1fr; }
    .portal-columns { flex-direction: column; }
    .main-logo { max-width: 90%; }
}

.compact-search-area {
    background: #f8f9fa; /* Light grey instead of heavy blue */
    padding: 25px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.search-input-group {
    display: flex;
    background: white;
    border: 2px solid var(--main-blue);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-input-group input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 1rem;
    outline: none;
}

.search-icon-btn {
    background: var(--main-blue);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
}

.search-icon-btn:hover {
    background: #000;
}

.mini-tags {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
}

.trending-fire {
    color: var(--red-header);
    font-weight: bold;
    margin-right: 8px;
}

.mini-tags a {
    color: #444;
    text-decoration: none;
    margin: 0 5px;
    padding: 2px 8px;
    background: #eee;
    border-radius: 4px;
    transition: 0.2s;
}

.mini-tags a:hover {
    background: var(--main-blue);
    color: white;
}

/* Mobile Tweak */
@media (max-width: 600px) {
    .compact-search-area { padding: 15px 10px; }
    .mini-tags { display: none; } /* Hide tags on mobile to save space */
}


.search-container { position: relative; } /* Keeps results attached to search bar */

.search-results-box {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: left;
}

.search-results-box a {
    display: block;
    padding: 12px 15px;
    color: #0d47a1;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.search-results-box a:hover {
    background-color: #fff9c4;
    color: #d32f2f;
}
