:root {
    --sky-blue: #87CEEB;
    --deep-blue: #003366;
    --eye-comfort: #f0f2f5; /* Greyish background */
    --college-red: #e61e25;
    --text-color: #333;
}

* { 
    box-sizing: border-box; 
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: var(--eye-comfort);
    color: var(--text-color);
}

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: auto; 
}

/* Header & Responsive Flex Layout */
header { 
    background: white; 
    padding: 15px 0 0 0; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-bottom: 15px; 
    flex-wrap: wrap; 
    gap: 15px;
}

.logo-area { 
    display: flex; 
    align-items: center; 
}

.logo-area img { 
    width: 70px; 
    margin-right: 15px; 
}

.logo-text h1 {
    margin: 0;
    font-size: 24px;
    color: var(--deep-blue);
}

.logo-text span {
    font-size: 13px;
    color: #666;
}

.red-line { 
    height: 4px; 
    background: var(--college-red); 
    width: 100%; 
}

/* Navigation Menu Buttons */
header nav {
    width: auto;
}

header nav ul {
    list-style: none;         
    padding: 0;
    margin: 0;
    display: flex;            
    gap: 8px;                
    align-items: center;
    flex-wrap: wrap;          
}

header nav ul li {
    display: inline-block;    
}

header nav ul li a {
    display: inline-block;
    text-decoration: none;    
    background-color: var(--deep-blue); 
    color: #ffffff;           
    padding: 8px 14px;        
    border-radius: 4px;       
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;      
    transition: background 0.2s ease, transform 0.1s ease;
}

header nav ul li a:hover {
    background-color: #002244; 
    color: var(--sky-blue);           
}

header nav ul li a[href="#enroll"] {
    background-color: var(--college-red); 
}
header nav ul li a[href="#enroll"]:hover {
    background-color: #b51217;
    color: #fff;
}

header nav ul li a[href="portal.php"], 
header nav ul li a[href="portal.html"] {
    background-color: var(--sky-blue); 
    color: var(--deep-blue);
}
header nav ul li a[href="portal.php"]:hover, 
header nav ul li a[href="portal.html"]:hover {
    background-color: #62b3d6;
    color: var(--deep-blue);
}

/* PREMIUM COOKIE BANNER OVERLAY CLASSES */
.cookie-overlay-box {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 420px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 10000;
    padding: 22px;
    display: none;
    border-radius: 8px;
    border-left: 5px solid var(--college-red);
    transition: all 0.3s ease;
}

.cookie-overlay-box p {
    margin: 0 0 15px 0;
    color: #444;
    font-size: 13px;
    line-height: 1.6;
}

.cookie-btn-group {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-btn-accept {
    background: var(--deep-blue);
    color: white;
    border: none;
    padding: 8px 18px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.cookie-btn-accept:hover {
    background: #002244;
}

/* Awareness Banner */
.awareness-banner {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-bottom: 1px solid #ffeeba;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

/* Course Grid */
.section-title { text-align: center; color: var(--deep-blue); margin-top: 40px; }
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}
.course-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-top: 5px solid var(--sky-blue);
    transition: transform 0.3s;
}
.course-card:hover { transform: translateY(-5px); }
.course-card i { font-size: 2rem; color: var(--deep-blue); margin-bottom: 15px; }
.tag { background: var(--eye-comfort); font-size: 0.8rem; padding: 5px 10px; border-radius: 20px; color: var(--deep-blue); font-weight: bold; }

/* Persistent WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    z-index: 1000;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

/* Loader */
#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #003366; 
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.book {
    --color: #fff;
    --duration: 6.8s;
    width: 32px;
    height: 12px;
    position: relative;
    margin: 32px 0 0 0;
    zoom: 1.5; 
}

.book .inner {
    width: 32px;
    height: 12px;
    position: relative;
    transform-origin: 2px 2px;
    transform: rotateZ(-90deg);
    animation: book var(--duration) ease infinite;
}

.book .inner .left,
.book .inner .right {
    width: 60px;
    height: 4px;
    top: 0;
    border-radius: 2px;
    background: var(--color);
    position: absolute;
}

.book .inner .left { right: 28px; transform-origin: 58px 2px; transform: rotateZ(90deg); }
.book .inner .right { left: 28px; transform-origin: 2px 2px; transform: rotateZ(-90deg); }

.book .inner .middle {
    width: 32px;
    height: 12px;
    border: 4px solid var(--color);
    border-top: 0;
    border-radius: 0 0 9px 9px;
    transform: translateY(2px);
}

@keyframes book {
    0% { transform: rotateZ(-90deg); }
    10% { transform: rotateZ(0deg); }
    40% { transform: rotateZ(0deg); }
    50% { transform: rotateZ(90deg); }
    60% { transform: rotateZ(90deg); }
    90% { transform: rotateZ(0deg); }
    100% { transform: rotateZ(0deg); }
}

#loader p {
    margin-top: 50px;
    font-size: 18px;
    letter-spacing: 2px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Privacy Box */
.privacy-box {
    margin: 50px auto;
    padding: 20px;
    background: #e9ecef;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* Portal Specifics */
.portal-body {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card, .dashboard-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.portal-logo { width: 100px; margin-bottom: 20px; }

.btn-portal {
    background: var(--sky-blue);
    color: var(--deep-blue);
    font-weight: bold;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
    text-align: left;
}

.portal-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--sky-blue);
}

.highlight-item { border-left-color: var(--college-red); }

.download-link {
    display: block;
    margin-top: 10px;
    color: var(--deep-blue);
    font-weight: bold;
    text-decoration: underline;
}

.meet-btn {
    display: inline-block;
    background: #00897b;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

.logout-btn {
    background: none;
    border: 1px solid var(--college-red);
    color: var(--college-red);
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
}

footer { background: var(--deep-blue); color: white; padding: 40px 0 20px 0; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.credit { text-align: center; border-top: 1px solid #444; margin-top: 20px; padding-top: 10px; font-size: 0.8rem; }

@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        text-align: center;
    }
    .logo-area {
        flex-direction: column;
        margin-bottom: 5px;
    }
    .logo-area img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    header nav ul {
        justify-content: center;
        width: 100%;
    }
    header nav ul li a {
        padding: 6px 12px;
        font-size: 12px;
    }
    .cookie-overlay-box {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
}