* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #1a4f72;
    --primary-dark: #080561;
    --secondary: #2980b9;
    --accent: #e67e22;
    --light: #f8f9fa;
    --dark: #343a40;
    --darker: #1d2124;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --gray: #6c757d;
}

body {
    background: linear-gradient(135deg, #f5f7fa, #e4e7eb);
    min-height: 100vh;
    color: var(--dark);
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    padding: 0 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    font-family: 'Segoe UI', sans-serif;
}

.logo-text span:first-child {
    color: #ffffff;
}

.logo-text span:last-child {
    color: #f7a541;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1002;
}

/* Enhanced Footer Styles */
.minimal-footer {
    background: #000;
    padding: 30px 0 20px;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0 10px;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 5px 15px;
    white-space: nowrap;
    transition: color 0.3s;
    border-radius: 4px;
}

.footer-links a:hover {
    color: #f7a541;
}

.copyright {
    color: #e0e0e0;
    font-size: 14px;
    margin-top: 15px;
    line-height: 1.6;
}

.copyright a {
    color: #4da6ff;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.copyright a:hover {
    color: #f7a541;
    text-decoration: underline;
}

/* Full-Page Menu Bar */
.full-page-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: calc(100vh - 70px);
    background: white;
    z-index: 999;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.full-page-menu.active {
    right: 0;
}

.menu-items {
    list-style: none;
    padding: 20px 0;
}

.menu-items li {
    border-bottom: 1px solid rgba(8, 5, 97, 0.1);
}

.menu-items li:last-child {
    border-bottom: none;
}

.menu-items a {
    display: flex;
    align-items: center;
    padding: 16px 25px;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 18px;
    transition: all 0.3s ease;
}

.menu-items a:hover {
    background: rgba(8, 5, 97, 0.05);
    padding-left: 30px;
}

.menu-items a i {
    margin-right: 15px;
    width: 25px;
    text-align: center;
    font-size: 20px;
    color: var(--primary-dark);
}

.menu-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.menu-overlay.active {
    display: block;
}

/* Main Content Styles */
main {
    padding: 30px 0;
    flex: 1;
}

.main-content {
    display: flex;
    gap: 20px;
}

.left-section {
    flex: 2;
}

.right-section {
    flex: 1;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .full-page-menu {
        max-width: 280px;
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .menu-overlay {
        top: 60px;
        height: calc(100vh - 60px);
    }
}

/* Scholarship Eligibility Checker Styles */
.scholarship-form-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.scholarship-form-card .card-header {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 20px;
    text-align: center;
}

.scholarship-form-card .card-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.scholarship-form-card .card-body {
    padding: 30px;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

.step-title {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.step-title i {
    color: var(--accent);
    font-size: 24px;
}

.options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.option-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 90px;
}

.option-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.option-card.selected {
    border-color: var(--success);
    background: rgba(39, 174, 96, 0.05);
    transform: translateY(-3px);
}

.option-card i {
    font-size: 24px;
    color: var(--secondary);
    margin-bottom: 5px;
}

.option-card h4 {
    font-size: 14px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
    font-size: 17px;
    text-align: center;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ced4da;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.form-control:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(41, 128, 185, 0.2);
}

.btn-container {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-container-center {
    justify-content: center;
}

.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 8px rgba(41, 128, 185, 0.25);
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(41, 128, 185, 0.35);
}

.btn-secondary {
    background: var(--gray);
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.25);
}

.btn-success:hover {
    background: #219653;
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--warning);
    color: white;
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.25);
}

.btn-warning:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.result-container {
    display: none;
    animation: fadeIn 0.8s ease;
    text-align: center;
}

.eligibility-result {
    background: transparent;
    padding: 0;
    margin: 25px 0;
    text-align: center;
}

.eligibility-result.not-eligible {
    border-left: none;
}

.result-title {
    font-size: 28px;
    color: var(--success);
    margin-bottom: 15px;
    font-weight: 700;
}

.eligibility-result.not-eligible .result-title {
    color: var(--danger);
}

.result-desc {
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 25px;
}

.scholarship-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 25px 0;
    justify-content: center;
}

.domicile-note {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--secondary);
    font-size: 16px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 20px;
}

.income-note {
    background: #fff8e1;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid var(--warning);
    font-size: 16px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 15px;
}

.warning-note {
    background: #ffebee;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--danger);
    font-size: 16px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 20px;
}

.progress-container {
    margin: 20px 0 15px;
}

.progress-bar {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.5s ease;
}

.validation-error {
    color: var(--danger);
    text-align: center;
    margin-top: 10px;
    font-weight: 500;
    display: none;
    animation: shake 0.5s ease;
}

.validation-error.show {
    display: block;
}

.result-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--success);
}

.not-eligible .result-icon {
    color: var(--danger);
}

/* Full-width Box Styles */
.full-width-box {
    background: white;
    border-radius: 3px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 3px;
    margin-bottom: 25px;
    overflow: hidden;
    width: 100%;
    transition: transform 0.3s;
}

.box-header {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: bold;
    justify-content: center;
    text-align: center;
}

.box-content {
    padding: 18px;
    text-align: center;
}

.box-content p {
    color: var(--dark);
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: center;
}

.box-button {
    text-align: center;
    margin-top: 10px;
}

.box-button a {
    display: inline-block;
    padding: 12px 30px;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.support-button a {
    background: linear-gradient(to right, #cc0000 0%, #ff6600 100%);
    background-size: 200% auto;
    animation: gradientAnimation 3s ease infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.review-button a {
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.box-button a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Full-width FAQ Section */
.faq-full-width {
    background: white;
    border-radius: 3px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 3px;
    margin: 25px 0;
    overflow: hidden;
}

.faq-header {
    background: linear-gradient(to right, #1a4f72, #2980b9);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: bold;
    justify-content: center;
}

.faq-container {
    padding: 18px;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--secondary);
}

.faq-question::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
    font-size: 14px;
}

.faq-question.active::after {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--dark);
    line-height: 1.6;
    padding: 0 10px;
    font-size: 14px;
}

.faq-answer.open {
    max-height: 500px;
    padding: 10px;
}

/* Donor List Styles */
.donor-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 13px;
}

.donor-list th {
    background-color: #f8f9fa;
    padding: 8px 10px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 2px solid #e0e0e0;
}

.donor-list td {
    padding: 6px 10px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.donor-list tr:last-child td {
    border-bottom: none;
}

.donor-list tr:nth-child(even) {
    background-color: #f8f9fa;
}

.donor-list tr:hover {
    background-color: #edf7ff;
}

.donor-amount {
    font-weight: 600;
    color: var(--success);
}

.thank-you {
    text-align: center;
    margin-top: 12px;
    font-style: italic;
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
}

.percentage-info {
    background: #e8f4fc;
    padding: 15px;
    border-radius: 8px;
    margin: 15px auto;
    max-width: 500px;
    font-size: 14px;
    text-align: center;
}

/* SVMCM Question Section */
.svmcm-question {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.svmcm-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.svmcm-option {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    min-width: 120px;
}

.svmcm-option:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.svmcm-option.selected {
    border-color: var(--success);
    background: rgba(39, 174, 96, 0.05);
}

.svmcm-option i {
    font-size: 24px;
    color: var(--secondary);
    margin-bottom: 8px;
    display: block;
}

.svmcm-option h4 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    header {
        height: 60px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .menu-toggle {
        font-size: 22px;
    }
    
    .main-content {
        gap: 12px;
    }

    .about-box, .faq-container, .box-content {
        padding: 12px;
    }
    
    .about-box {
        margin: 15px 0;
    }
    
    .full-width-box, .faq-full-width {
        margin: 15px 0;
    }
    
    .full-page-menu, .menu-overlay {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .footer-links a {
        font-size: 15px;
        padding: 5px 10px;
    }
    
    .copyright {
        font-size: 13px;
        margin-top: 10px;
    }
    
    .minimal-footer {
        padding: 25px 0 15px;
        margin-top: 30px;
    }
    
    /* Scholarship form mobile adjustments */
    .scholarship-form-card .card-body {
        padding: 15px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .options-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .btn-container {
        flex-direction: column;
    }
    
    .result-title {
        font-size: 24px;
    }
    
    .result-desc {
        font-size: 16px;
    }
    
    /* SVMCM options mobile */
    .svmcm-options {
        flex-direction: column;
        align-items: center;
    }
    
    .svmcm-option {
        width: 100%;
        max-width: 200px;
    }
}

/* New: Spacer before footer */
.footer-spacer {
    height: 60px;
    display: block;
    width: 100%;
}

/* Footer bottom spacing */
.minimal-footer {
    padding-bottom: 30px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}