/* --- Root Variables & Theme --- */
:root {
    --primary: #0d47a1;
    --primary-light: #4dabf5;
    --accent: #00c853;
    --dark: #0a192f;
    --glass: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .navbar-brand {
    font-family: 'Playfair Display', serif;
}

/* --- Navbar Refinement --- */
.navbar {
    background-color: var(--primary) !important;
    transition: var(--transition);
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    letter-spacing: 1px;
    font-size: 1.4rem;
}

.nav-link {
    position: relative;
    margin: 0 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-light);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}



/* --- Hero Section --- */
.hero-section {
    position: relative;
    background: url('https://images.unsplash.com/photo-1551601651-2a8555f1a136?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
    min-height: 90vh;
    padding-top: 80px;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.95) 0%, rgba(13, 71, 161, 0.7) 100%);
}

.tracking-widest {
    letter-spacing: 0.3rem;
    font-weight: 600;
}

.text-primary-light {
    color: var(--primary-light);
    text-shadow: 0 0 15px rgba(77, 171, 245, 0.3);
}

/* --- Pulse Button & Hover Effects --- */
.pulse-btn {
    animation: pulse-blue 2s infinite;
    border: none;
    font-weight: 600;
    letter-spacing: 1px;
}

@keyframes pulse-blue {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(13, 71, 161, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(13, 71, 161, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(13, 71, 161, 0); }
}

/* --- About & Image Stack --- */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 2rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.image-stack {
    position: relative;
    padding: 20px;
}

.main-img {
    border: 8px solid white;
    transition: var(--transition);
}

.secondary-img {
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 60%;
    border: 6px solid white;
    transition: var(--transition);
}

.image-stack:hover .main-img { transform: scale(1.02); }
.image-stack:hover .secondary-img { transform: translateY(-10px); }

/* --- Programme (Glassmorphism) --- */
.bg-dark {
    background-color: var(--dark) !important;
}

.bg-glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.bg-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
    border-color: var(--primary-light);
}

/* --- Registration & QR --- */
.qr-box {
    border: 1px solid #eee;
    transition: var(--transition);
}

.qr-box:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.list-group-item {
    border-bottom: 1px dashed #ddd !important;
    padding: 1rem 0;
}

/* --- Footer --- */
/* --- Footer Credit Styling --- */
.bg-yellow-logo {
    background-color: #ffff00; /* Matching the yellow from the Evenso image */
    display: inline-block;
}

.fw-black {
    font-weight: 900;
    letter-spacing: -1px;
}

.text-primary-light {
    color: #4dabf5 !important; /* Medical blue for Medicon Edge */
}

.credit-item {
    transition: transform 0.3s ease;
}

.credit-item:hover {
    transform: translateY(-3px);
}

/* Ensure footer text remains readable on dark blue */
footer p {
    font-size: 0.9rem;
}

/* Responsive divider fix */
@media (max-width: 767px) {
    .credit-item {
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }
}

/* --- Partner Logo Branding --- */

.partner-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

/* Evenso: Fixed height to maintain brand ratio */
.logo-evenso {
    height: 35px;
    width: auto;
    filter: brightness(1.1); /* Ensures the yellow pops against dark bg */
    transition: var(--transition);
}

/* Medicon Edge: Usually wider, needs slightly more height for the sub-text */
.logo-medicon {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.partner-logo-wrapper:hover img {
    transform: scale(1.08);
    filter: brightness(1.2);
}

/* Responsive Logo Handling */
@media (max-width: 768px) {
    .logo-evenso {
        height: 35px;
    }
    .logo-medicon {
        height: 45px;
    }
    .gap-4 {
        gap: 2rem !important;
    }
}

/* Styling for Partner Links */
.partner-link {
    transition: all 0.3s ease-in-out;
    display: inline-block;
}

/* Removes default underline and color changes for Medicon text */
.partner-link.text-decoration-none:hover {
    color: #fff !important; 
}

/* Hover Animation: Slight scale and brightness boost */
.partner-link:hover {
    transform: translateY(-3px);
    filter: brightness(1.2);
}

/* Ensure images behave within the link */
.partner-link img {
    display: block;
}

/* --- Mobile Fixes --- */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--primary);
        padding: 1rem;
        border-radius: 0 0 10px 10px;
    }
    .secondary-img {
        display: none !important;
    }
    .hero-section {
        min-height: 70vh;
    }
    .display-3 {
        font-size: 2.2rem;
    }
}

.amount-display{
font-size:28px;
font-weight:700;
color:#0d6efd;
}

.qr-section{
display:none;
}

.payment-section{
display:none;
}

.form-label{
font-size:14px;
margin-bottom:3px;
}

.form-control,
.form-select{
padding:8px 10px;
}