/* Improved qualification block for Educational.php */
.improved-qual-block {
    background: linear-gradient(135deg, #f8fafc 90%, #e3f2fd 100%);
    border-radius: 1.2rem;
    border: 1.5px solid #e3e8ee;
    box-shadow: 0 2px 12px rgba(25, 55, 109, 0.07);
    transition: box-shadow 0.18s, transform 0.18s;
}

.improved-qual-block:hover {
    box-shadow: 0 6px 24px rgba(25, 55, 109, 0.13);
    transform: translateY(-2px) scale(1.01);
}

/* Improved document card for Preview page */
.improved-doc-card {
    background: linear-gradient(135deg, #f8fafc 85%, #e3f2fd 100%);
    border-radius: 1.5rem;
    border: 1.5px solid #e3e8ee;
    box-shadow: 0 4px 18px rgba(25, 55, 109, 0.09);
    padding: 1.2rem 1.1rem 1.1rem 1.1rem;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.2s, transform 0.2s;
}

.improved-doc-card:hover {
    box-shadow: 0 8px 32px rgba(25, 55, 109, 0.13);
    transform: translateY(-2px) scale(1.02);
}

.improved-doc-btn {
    border-radius: 999px;
    font-size: 1.05rem;
    padding: 0.7em 2.1em;
    margin-top: 0.5em;
    box-shadow: 0 2px 8px rgba(25, 55, 109, 0.08);
    background: #fff;
    border: 2px solid #e3e8ee;
    color: #19376d;
    font-weight: 700;
    transition: color 0.18s, box-shadow 0.18s, background 0.18s;
    text-shadow: 0 1px 0 #fff, 0 2px 6px rgba(25, 55, 109, 0.08);
}

.improved-doc-btn:hover {
    color: #fca311;
    background: #f8fafc;
    box-shadow: 0 4px 16px rgba(25, 55, 109, 0.13);
}

/* General Body & Background */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

.background-container {
    background: linear-gradient(to bottom, #eef2f7, #f0f2f5);
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

/* Animated Background Circles */
.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(25, 55, 109, 0.2);
    /* Subtle navy accent */
    animation: animate 25s linear infinite;
    bottom: -150px;
}

.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

/* Navbar Styling */
.navbar-navy {
    background-color: #19376d;
    /* Darker navy */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid #fca311;
    /* Accent color */
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff !important;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1) rotate(5deg);
}

.nav-link {
    color: #e0e0e0 !important;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 0.8rem 1rem !important;
    border-radius: 8px;
    margin: 0 5px;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link i {
    margin-right: 8px;
}

/* Dropdown Menu */
.dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background-color: #19376d;
}

.dropdown-item {
    color: #e0e0e0;
    padding: 10px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #fca311;
    color: #19376d;
}

.dropdown-toggle::after {
    display: none;
    /* Hiding the default caret */
}

.profile-dropdown-toggle {
    background: none !important;
    border: none !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-dropdown-toggle img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fca311;
}

/* Main Content & Cards */
main {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.card-custom {
    background-color: #ffffff;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08), 0 6px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    /* Ensures child elements conform to border radius */
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.12), 0 8px 10px rgba(0, 0, 0, 0.15);
}

.card-header-custom {
    background-color: #19376d;
    color: white;
    font-weight: 600;
    border-bottom: 3px solid #fca311;
    padding: 1rem 1.5rem;
}

/* Buttons */
.btn-navy {
    background-color: #19376d;
    border-color: #19376d;
    color: white;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-navy:hover {
    background-color: #112a52;
    transform: translateY(-2px);
}

.btn-outline-navy {
    color: #19376d;
    border-color: #19376d;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-navy:hover {
    background-color: #19376d;
    color: white;
}

/* Footer */
.footer-custom {
    background-color: #112a52;
    /* Slightly lighter than navbar for depth */
    color: #e0e0e0;
    padding: 2rem 0;
    border-top: 4px solid #fca311;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.footer-custom p {
    margin-bottom: 0;
}

/* Flash Messages */
.alert {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-left: 5px solid;
}

.alert-success {
    border-color: #28a745;
}

.alert-danger {
    border-color: #dc3545;
}

.alert-warning {
    border-color: #ffc107;
}

.alert-info {
    border-color: #17a2b8;
}

/* Search Box */
.search-box {
    position: relative;
    width: 250px;
}

.search-box .form-control {
    padding-left: 2.5rem;
    border-radius: 8px;
}

.search-box .search-icon {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    color: #6c757d;
}

/* Avatar Glass Effect */
.avatar-glass {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(25, 55, 109, 0.3);
    /* From the navy theme */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #f8f9fa;
}

/* Glow Text Effect */
.glow-text {
    text-shadow: 0 0 8px rgba(78, 115, 223, 0.5);
}

.glow-text-white {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Fancy Card */
.fancy-card {
    border: none;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fancy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.application-count-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #f0f2f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 5px solid #19376d;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
}

.application-count-circle .count {
    font-size: 3rem;
    font-weight: 700;
    color: #19376d;
}

.application-count-circle .label {
    font-size: 1rem;
    color: #6c757d;
    margin-top: -10px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(25, 55, 109, 0.8), rgba(25, 55, 109, 0.8)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?q=80&w=2070&auto=format&fit=crop') center center/cover no-repeat;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.text-navy {
    color: #19376d !important;
}

.btn-warning {
    background-color: #fca311;
    border-color: #fca311;
    color: #19376d;
    font-weight: bold;
}

.btn-warning:hover {
    background-color: #e0930b;
    border-color: #e0930b;
}

section {
    scroll-margin-top: 70px;
    /* Adjust based on navbar height */
}

/* Progress Marker */
.progress-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.progress-step-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100px;
    /* Adjust as needed */
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #d1d5db;
    /* Gray for upcoming steps */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 3px solid #d1d5db;
    transition: all 0.3s ease;
}

.progress-step.completed {
    background-color: #28a745;
    /* Green for completed */
    border-color: #28a745;
}

.progress-step.active {
    background-color: #19376d;
    /* Navy for active */
    border-color: #19376d;
    transform: scale(1.2);
}

.step-icon {
    font-size: 1rem;
}

.step-label {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.progress-connector {
    flex-grow: 1;
    height: 4px;
    background-color: #d1d5db;
    /* Gray connector line */
    margin: 0 10px;
    transform: translateY(18px);
    /* Align with middle of steps */
}

/* --- COMMON UTILITY CLASSES FOR CARDS, BUTTONS, INPUTS --- */

.card-util {
    background: linear-gradient(135deg, #f8fafc 80%, #e3f2fd 100%);
    /* Slight shiny blue gradient for ultra-light effect */
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(25, 55, 109, 0.07), 0 1.5px 6px rgba(25, 55, 109, 0.09);
    border: none;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s, transform 0.3s;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

.card-util:hover {
    box-shadow: 0 16px 32px rgba(25, 55, 109, 0.12), 0 3px 12px rgba(25, 55, 109, 0.15);
    transform: translateY(-4px);
}

.btn-util {
    background: none;
    border: 2px solid #e3e8ee;
    color: #19376d;
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: 0.03em;
    padding: 0.7em 2.2em;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(25, 55, 109, 0.08);
    position: relative;
    transition: color 0.2s, text-shadow 0.2s, box-shadow 0.2s;
    text-shadow: 0 1px 0 #fff, 0 2px 6px rgba(25, 55, 109, 0.08);
    outline: none;
}

.btn-util:active,
.btn-util:focus {
    outline: none;
    color: #112a52;
}

.btn-util:hover {
    color: #fca311;
    text-shadow: 0 1px 0 #fff, 0 2px 12px rgba(25, 55, 109, 0.18);
}

.input-util {
    background: #f8fafc;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 0.9em 1.2em;
    font-size: 1rem;
    font-family: inherit;
    color: #19376d;
    margin-bottom: 1.2em;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: none;
}

.input-util:focus {
    border-color: #19376d;
    outline: none;
    box-shadow: 0 0 0 2px rgba(25, 55, 109, 0.08);
}

.carved-text {
    font-weight: 700;
    color: #19376d;
    text-shadow: 1px 1px 0 #fff, 0 2px 8px rgba(25, 55, 109, 0.09), 0 1px 0 #f0f2f5;
    letter-spacing: 0.04em;
}

/* Utility for vertical spacing */
.spacy {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}