
.main-content {
    margin-bottom: 10px;
}

.scholarship-section {
    display: flex;
    align-items: center;
    width: 100%;
    color: #333;
    position: relative;
    min-height: 650px;
    padding: 80px 5%;
    flex-wrap: wrap;
    overflow: hidden;
}

.scholarship-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/resources/pastor_pic.png') right center / cover no-repeat;
    z-index: 0;
    filter: brightness(0.7) saturate(0.65); /* Toned down colors */
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.scholarship-bg-image::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.content-column {
    flex: 0 0 60%;
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffd700; /* Premium gold accent */
    margin-bottom: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #ffffff; /* High contrast white */
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01em;
    animation: slideUp 0.8s ease-out forwards;
}

.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px;
    line-height: 1.3;
}

.page-desc {
    font-weight: 400;
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    text-align: left;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-apply, .btn-rules {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-apply {
    background-color: #005836;
    color: white;
    border: 1px solid #005836;
}

.btn-apply:hover {
    background-color: #003d25;
}

.btn-rules {
    background-color: transparent;
    color: #005836;
    border: 2px solid #005836;
}

.btn-rules:hover {
    background-color: rgba(0, 88, 54, 0.05);
}

.btn-apply i, .btn-rules i {
    font-size: 1.1rem;
}

.content-section {
    max-width: 1500px;
    margin: auto;
    padding: 60px 5% 0 5%;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #025836;
    margin-bottom: 15px;
}

.description {
    color: #000;
    font-size: 16px;
    line-height: 1.6;
}

.form-container {
    max-width: 1500px;
    margin: 0 auto;
    background: white;
    padding: 20px 5% 80px 5%;
    border-radius: 8px;
}

/* Multi-step progress bar */
.progress-bar-container {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.progress-steps {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 400px;
}

.step {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e1e5e9;
    color: #a0a6ac;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.step.active {
    background: #025836;
    color: white;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e1e5e9;
}

/* Form Steps Visibility */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

label {
    font-weight: 500;
    color: #2c5530;
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: #e74c3c;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    padding: 12px 10px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #025836 !important;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Buttons */
.submit-btn {
    background-color: #025836;
    color: white;
    border: 2px solid #025836;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.submit-btn:hover {
    background-color: transparent;
    color: #025836;
}

.submit-btn.outline {
    background-color: transparent;
    color: #025836;
}

.submit-btn.outline:hover {
    background-color: #025836;
    color: white;
}

.dropdown-toggle {
    border: 2px solid #e1e5e9 !important;
    text-align: left;
    background-color: transparent !important;
    color: #333 !important;
    padding: 12px 15px !important;
    width: 100% !important;
    font-size: 14px;
    height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-toggle::after {
    display: none !important; /* Hide bootstrap default arrow */
}

/* Custom arrow for dropdown-toggle */
.dropdown-toggle span::after {
    content: '\f078'; /* FontAwesome chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    margin-left: 10px;
    color: #a0a6ac;
}

.dropdown-menu {
    border: 2px solid #e1e5e9 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    z-index: 1050 !important;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
    border-color: #025836 !important;
    outline: none !important;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item.active {
    background-color: #025836 !important;
    color: white !important;
}

.form-group, .form-row {
    position: relative;
    overflow: visible; /* Prevent clipping of absolute-positioned dropdowns */
}

@media (max-width: 768px) {
    .scholarship-section {
        min-height: 550px;
        padding: 40px 5% 30px 5%; /* Tightened bottom padding */
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* Move to the absolute bottom */
        align-items: center;       /* Horizontal center */
        text-align: center;
    }

    .scholarship-bg-image {
        background: url('../images/resources/pastor_mobile_pic.png') 50% 10% / cover no-repeat !important;
        filter: brightness(1) saturate(1); /* Reset filters as we are using a real overlay now */
    }

    .scholarship-bg-image::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
        z-index: 1;
        display: block !important;
    }

    .content-column {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        background: none;
        padding: 0;
        text-align: center;
        color: white; /* Change to white for dark overlay */
    }

    .page-title {
        font-size: 1.3rem; 
        margin-bottom: 5px;
        text-align: center;
        color: white; /* Force white color */
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 15px;
        text-align: center;
        color: rgba(255,255,255,0.9); /* Slightly muted white */
    }

    .hero-label {
        font-size: 1.1rem;
        margin-bottom: 5px;
        color: white;
    }

    .page-desc {
        display: none;
    }

    .hero-btns {
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .form-container {
        padding: 20px;
    }
    
    .submit-section {
        flex-direction: column-reverse;
        gap: 15px;
    }
    
    .submit-btn {
        width: 100%;
    }
}

/* Hero and page load animations */
@keyframes fadeInHero {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-visible {
    animation: fadeInHero 1.2s ease-out forwards;
}

@keyframes slideInFromBottom {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.page-slide-in {
    animation: slideInFromBottom 0.8s ease-out forwards;
}

/* Patron/Biography Section Styles matching About Us page */
.patron-wrapper {
    width: 100%;
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.patron-section {
    color: #000;
    max-width: 1300px;
    margin: auto;
    padding: 0 20px;
}

.patron-name {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.patron-role {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
}

.divider {
    border-top: 1.5px solid #025836;
    width: 80px;
    margin: 1.5rem 0;
    opacity: 1;
}

.patron-bio-content p {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    line-height: 1.8;
    margin-bottom: 25px;
    color: #444;
    text-align: justify;
}

.patron-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

@media (max-width: 992px) {
    .patron-section {
        padding: 60px 20px;
    }
    .patron-title {
        text-align: center;
    }
    .patron-bio-content p {
        text-align: center;
    }
    .divider {
        margin: 1.5rem auto;
    }
    .patron-image {
        margin-top: 40px;
        max-width: 450px;
    }
}
