/* =========================================
   COURSES PAGE STYLES (Clean Layout)
========================================= */

/* --- 1. HERO SECTION (ULTRA SLIM - RESPONSIVE HEIGHT FIX) --- */
.courses-hero {
    position: relative;
    min-height: 20vh !important; /* Perfect for Laptops/Big Screens */
    padding: 30px 0 !important;   /* Minimal vertical padding */
    background-color: var(--astro-primary); 
    color: white;
    overflow: hidden;
    border-bottom: 5px solid var(--astro-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mandala-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1500px;
    height: 1500px;
    background-image: url('images/mandala.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%);
    opacity: 0.1; 
    animation: spin-mandala 60s linear infinite;
    z-index: 1;
}

.mandala-bg:empty {
    background: radial-gradient(circle, var(--astro-accent) 2px, transparent 2.5px);
    background-size: 30px 30px;
}

@keyframes spin-mandala {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-badge-gold {
    display: inline-block; background: var(--astro-accent); color: var(--astro-primary);
    padding: 6px 20px; border-radius: 4px; font-weight: 800; font-size: 0.85rem;
    text-transform: uppercase; margin-bottom: 10px; letter-spacing: 2px;
    position: relative; z-index: 2;
}

.courses-title {
    font-size: 2.2rem !important; /* EXACT MATCH - Site-wide standard */
    font-weight: 800; color: #fff;
    margin-bottom: 5px;
    margin-top: 5px;
    position: relative; z-index: 2;
}

.courses-sub {
    font-size: 1.2rem !important; /* EXACT MATCH - Site-wide standard */
    color: #ddd; max-width: 700px; margin: 0 auto; line-height: 1.6;
    position: relative; z-index: 2;
}

/* --- TABLET OPTIMIZATION (Less height) --- */
@media (max-width: 991px) {
    .courses-hero {
        min-height: 15vh !important; /* Reduced for Tablets */
        padding: 20px 0 !important;
    }
}

/* --- MOBILE OPTIMIZATION (Ultra Slim) --- */
@media (max-width: 576px) {
    .courses-hero {
        min-height: 12vh !important; /* Absolute minimum for Mobile */
        padding: 15px 0 !important;
    }
    .courses-title {
        font-size: 1.6rem !important; /* Matched to site-wide mobile size */
        margin-top: 2px;
    }
    .courses-sub {
        font-size: 0.95rem !important;
        line-height: 1.2;
    }
    .hero-badge-gold {
        font-size: 0.7rem !important;
        padding: 3px 10px !important;
        margin-bottom: 5px !important;
    }
}

/* =========================================
   2. CURRICULUM SECTION (Background & Headings)
========================================= */
.courses-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: url('../images/marriage-bg.jpg') center/cover fixed; 
}

.courses-section::before {
    content: "";
    position: absolute;
    inset: 0; 
    background: rgba(255, 255, 255, 0.78); 
    z-index: 1;
}

.courses-section > * {
    position: relative;
    z-index: 2;
}

.section-heading {
    color: var(--astro-primary); font-weight: 900; font-size: 2.5rem; text-transform: uppercase;
}

.gold-divider {
    width: 100px; height: 4px; background: var(--astro-accent); border-radius: 2px; margin-top: 10px;
}

/* --- 3. TUITION SPECIFIC STYLES --- */
.tuition-header { margin-bottom: 5px !important; }

.tuition-main-title {
    color: var(--astro-primary); font-weight: 900; font-size: 2.4rem;
    text-transform: uppercase; margin-bottom: 5px;
}

.tuition-subheading {
    font-size: 1.15rem; color: #000000; font-weight: 700; font-style: italic; margin-bottom: 15px;
}

.tuition-card {
    background: #ffffff; border-radius: 12px; padding: 25px; box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-left: 10px solid var(--astro-primary); transition: all 0.3s ease; text-align: left;
}

.tuition-card:hover {
    transform: translateX(10px); box-shadow: 0 12px 35px rgba(128, 0, 0, 0.15); border-left-color: var(--astro-accent);
}

.tuition-title { color: var(--astro-primary); font-weight: 900; font-size: 1.9rem; margin-bottom: 8px; }

.tuition-content-heading {
    color: var(--astro-primary); font-size: 1.1rem; font-weight: 800; margin-bottom: 10px;
    text-transform: uppercase; display: inline-block; border-bottom: 2px solid var(--astro-accent); 
}

.tuition-subjects { color: #000000; font-size: 1.2rem; line-height: 1.7; margin-bottom: 15px; font-weight: 700; }

.hindi-subtext { display: block; margin-top: 8px; color: #000000; font-weight: 600; font-size: 1.15rem; }

.interest-msg { font-size: 1.1rem; color: var(--astro-primary); font-style: italic; font-weight: 800; margin-bottom: 18px; }

.tuition-phone {
    display: inline-flex; align-items: center; background-color: var(--astro-primary); color: white !important; 
    padding: 12px 30px; border-radius: 50px; font-weight: 800; text-decoration: none; transition: 0.3s;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.3); letter-spacing: 0.1rem;
}

.tuition-phone:hover { background-color: var(--astro-accent); color: var(--astro-primary) !important; transform: scale(1.05); }

.paper-solution-box {
    background-color: #ecf02c; color: var(--astro-primary); padding: 25px; border-radius: 12px; 
    text-align: center; border: 3px dashed var(--astro-primary); box-shadow: 0 6px 15px rgba(92, 0, 0, 0.15); margin-top: 30px;
    font-size: 1.2rem;
}

/* --- 4. CERTIFICATE SECTION --- */
.certificate-section { padding: 100px 0; background: var(--astro-primary); color: white; overflow: hidden; }

.sub-text-gold { color: var(--astro-accent); font-weight: 800; letter-spacing: 2px; }
.cert-title { font-size: 3rem; font-weight: 900; margin-bottom: 20px; }
.cert-desc { font-size: 1.1rem; line-height: 1.8; color: #e0e0e0; margin-bottom: 30px; }

.cert-features { list-style: none; padding: 0; }
.cert-features li { font-size: 1.1rem; margin-bottom: 15px; display: flex; align-items: center; }
.cert-features li::before {
    content: '\f058'; font-family: 'Font Awesome 5 Free'; font-weight: 900;
    color: var(--astro-accent); margin-right: 15px; font-size: 1.3rem;
}

.certificate-frame {
    position: relative; padding: 15px; background: #fff; border: 1px solid #ccc; 
    box-shadow: 0 0 40px rgba(0,0,0,0.5); transition: 0.5s; display: inline-block;
}
.certificate-frame:hover { transform: scale(1.02); }
.cert-img { border: 1px solid #eee; display: block; }

.shine-effect {
    position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
    animation: shine 3s infinite;
}

@keyframes shine { 100% { left: 200%; } }

/* --- 5. COURSE STEP & ARROW STYLES --- */
.course-step-wrapper {
    display: flex; align-items: flex-start; gap: 20px; position: relative;
    margin-left: -90px; margin-bottom: 25px;
}

.course-arrow-badge {
    flex-shrink: 0; width: 60px; height: 60px; background: var(--astro-accent);
    border: 4px solid #fff; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 1.8rem; font-weight: 900; color: var(--astro-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); position: relative; z-index: 5; margin-top: 10px; 
}

.course-arrow-badge::after {
    content: ''; position: absolute; right: -22px; top: 50%;
    transform: translateY(-50%); border-left: 18px solid var(--astro-accent);
    border-top: 18px solid transparent; border-bottom: 18px solid transparent; z-index: -1;
}

.course-step-wrapper .tuition-card { flex-grow: 1; margin-bottom: 0 !important; }

/* --- 6. VERTICAL DIVIDER (DESKTOP) --- */
@media (min-width: 992px) {
    .curriculum-divider {
        position: relative; border-right: 4px solid var(--astro-primary);
        padding-right: 50px; box-shadow: 5px 0 15px rgba(128, 0, 0, 0.05);
    }
    .curriculum-divider::after {
        content: ''; position: absolute; right: -8px; top: 50%;
        transform: translateY(-50%); width: 12px; height: 40px;
        background: var(--astro-accent); border-radius: 10px;
    }
    .curriculum-divider + .col-lg-6 { padding-left: 50px; }
}



/* =========================================
   RIGHT SIDE: PROFESSIONAL COURSE STYLES
========================================= */

/* 1. Card Layout & Structure */
.border-right-pro {
    border-left: none !important; 
    border-right: 10px solid var(--astro-primary); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.border-right-pro:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 35px rgba(128, 0, 0, 0.12);
    border-right-color: var(--astro-accent);
}

/* 2. Course Info Grid (Bold Badges) */
.course-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
    background: transparent;
}

.course-info-grid p {
    margin-bottom: 0;
    font-size: 1.1rem; 
    color: #000000; 
    font-weight: 800; 
    background: #f8f9fa; 
    padding: 12px 15px;
    border-left: 5px solid var(--astro-accent); 
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.course-info-grid strong {
    color: var(--astro-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 4px;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* 3. Action Buttons & Contact */
.course-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pro-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: var(--astro-primary) !important;
    font-weight: 800;
    text-decoration: none;
    border: 2px solid var(--astro-primary);
    border-radius: 50px;
    transition: 0.3s;
    letter-spacing: 0.1rem;
}

.pro-contact-link:hover {
    background: #fff5f5;
    transform: scale(1.02);
}

.btn-astro-enroll {
    background: linear-gradient(135deg, var(--astro-primary) 0%, #a50000 100%);
    color: white !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 18px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-astro-enroll:hover {
    background: var(--astro-accent);
    color: var(--astro-primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* 4. Loading Spinner Animation */
.loading-spinner-wrapper {
    animation: fadeInSpinner 0.5s ease-in-out;
}

@keyframes fadeInSpinner {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.spinner-border.text-danger {
    color: var(--astro-primary) !important; /* Matches your brand red */
}

/* 5. Modal Custom Styling */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    border-bottom: 4px solid var(--astro-accent) !important;
}

.form-control {
    padding: 12px;
    border: 2px solid #eee;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--astro-primary);
    box-shadow: 0 0 0 0.25rem rgba(128, 0, 0, 0.1);
}

/* 6. Responsive Adjustments */
@media (max-width: 768px) {
    .course-info-grid {
        grid-template-columns: 1fr;
    }
    .border-right-pro {
        border-right-width: 6px;
    }
}

/* =========================================
   MOBILE COMPACT ENROLL MODAL
========================================= */
@media (max-width: 576px) {
    /* Reduce overall inner padding of the modal */
    #enrollModal .modal-body {
        padding: 20px !important;
    }
    
    /* Shrink the top header slightly */
    #enrollModal .modal-header {
        padding: 12px 20px !important;
    }
    #enrollModal .modal-title {
        font-size: 1.15rem !important;
    }

    /* Reduce the gap between form fields */
    #enrollModal .mb-3, 
    #enrollModal .mb-4 {
        margin-bottom: 12px !important;
    }

    /* Make the labels smaller and closer to the inputs */
    #enrollModal .form-label {
        font-size: 0.85rem !important;
        margin-bottom: 4px !important;
    }

    /* Make the input boxes slightly slimmer */
    #enrollModal .form-control {
        padding: 8px 12px !important;
        font-size: 0.95rem !important;
    }

    /* Reduce the space under the intro text */
    #enrollModal .text-muted.mb-4 {
        margin-bottom: 15px !important;
        font-size: 0.85rem !important;
    }

    /* Slim down the final submit button */
    #enrollModal .btn-astro-enroll {
        padding: 12px !important;
        font-size: 0.95rem !important;
        margin-top: 5px !important;
    }
	
	.cert-title { font-size: 2rem; font-weight: 900; margin-bottom: 20px; }
}