/* General Reset and Theme Colors */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212; 
    color: #F5F7FA; 
}

/* --- Navigation Bar --- */
.navbar {
   position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    border-bottom: 2px solid #0055ff;
    background:  #2f304a;
    animation: blueBorderPulse 2s infinite alternate;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: nowrap; 
    justify-content: center;
}

.nav-links li a {
    text-decoration: none;
    color: #F5F7FA; 
    opacity: 0.8;
    font-size: 11px; 
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.4s ease-in-out;
    text-transform: uppercase;
}

.nav-links li a:hover, .nav-links li a.active {
    color: #ffffff;
    opacity: 1;
    border: 1px solid rgba(0, 136, 255, 0.5);
    background: rgba(0, 136, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 136, 255, 0.3) inset;
    text-shadow: 0 0 8px #0088ff;
}

/* --- Academic Section Styling --- */
.academic-section {
    padding: 60px 10%;
    background-color: #F5F7FA; 
    min-height: 80vh;
}

.academic-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #16324F;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Chamkdar Glowing Graduation Cap Icons */
.cap-icon {
    display: inline-block;
    font-size: 2.5rem;
    animation: capGlow 1.8s infinite alternate ease-in-out;
}

/* Right and Left Grid Boxes Layout */
.academic-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.academic-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid rgba(0, 136, 255, 0.3);
    box-shadow: 0 4px 15px rgba(22, 50, 79, 0.1);
    transition: all 0.3s ease-in-out;
}

.academic-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 136, 255, 0.3);
    border-color: #0088ff;
}

.academic-box h3 {
    font-size: 1.5rem;
    color: #16324F;
    margin-bottom: 15px;
    font-weight: 800;
}

.academic-box p {
    font-size: 1.1rem;
    color: #16324F;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Links inside Academic Boxes */
.academic-box a {
    color: #6610f0; 
    text-decoration: none;
    font-weight: bold;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.academic-box a:hover {
    color: #16324F;
    text-shadow: 0 0 8px rgba(214, 168, 79, 0.8);
}

/* Glowing Line Effect */
.line-glow {
    position: relative;
}

.line-glow::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    height: 3px; 
    border-radius: 2px;
    animation: textUnderlineGlow 2s infinite alternate ease-in-out;
}

.academic-box.line-glow::after {
    bottom: -15px;
    left: 25px;
}

/* Lower Section Divider */
.section-divider {
    width: 100%;
    background: linear-gradient(90deg, transparent, #D6A84F, transparent); 
    box-shadow: 0 2px 10px rgba(214, 168, 79, 0.5); 
    /* margin-top: 50px; */
}

/* --- Keyframe Animations --- */

@keyframes blueBorderPulse {
    0% {
        border-bottom-color: #0033aa;
        box-shadow: 0 4px 10px rgba(0, 51, 170, 0.4);
    }
    100% {
        border-bottom-color: #0088ff;
        box-shadow: 0 4px 25px rgba(0, 136, 255, 0.9), 0 4px 15px rgba(0, 136, 255, 0.6);
    }
}

@keyframes textUnderlineGlow {
    0% {
        width: 30%;
        background: #0033aa;
        box-shadow: 0 0 6px rgba(0, 51, 170, 0.4);
    }
    100% {
        width: 70%;
        background: #0088ff;
        box-shadow: 0 0 12px #0088ff, 0 0 20px rgba(0, 136, 255, 0.8);
    }
}

/* Cap Icon Glowing Animation */
@keyframes capGlow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(0, 136, 255, 0.4));
    }
    100% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 15px #0088ff) drop-shadow(0 0 25px #D6A84F);
    }
}

/* Keep education cards side by side at every screen size. */
.academic-section .academic-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Compact the cards on phones so both columns remain readable. */
@media (max-width: 600px) {
    .academic-section .academic-container {
        gap: clamp(10px, 3vw, 14px);
    }

    .academic-section .academic-box {
        width: auto;
        min-width: 0;
        padding: clamp(10px, 3vw, 14px);
        overflow-wrap: anywhere;
    }

    .academic-section .academic-box h3 {
        margin-bottom: 10px;
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .academic-section .academic-box p {
        margin-bottom: 6px;
        font-size: clamp(0.72rem, 3vw, 0.86rem);
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .academic-section .academic-box a {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}
