/* Modern Landing Page CSS - BAPAS Theme */
:root {
    --primary-color: #1e54b7;
    /* Vibrant Blue */
    --secondary-color: #f2c82b;
    /* Yellow/Gold */
    --bg-color: #ffffff;
    /* White */
    --text-color: #333333;
    --light-gray: #f8f9fa;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar Customization */
.navbar {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.navbar-brand img {
    height: 50px;
    margin-right: 15px;
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.nav-link.active {
    color: var(--secondary-color) !important;
    font-weight: 700;
}

/* Hero Section Update */
.hero-section {
    background-color: var(--primary-color);
    padding: 60px 0 120px 0;
    position: relative;
    border: none;
    background-image: none;
}

.hero-section::before,
.hero-section::after {
    display: none;
}

.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.wave-container svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.hero-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    max-width: 1100px;
}

.hero-logo {
    max-height: 120px;
    width: auto;
    max-width: 100%;
}

.hero-title {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-weight: 500;
}

/* Candidate Cards */
.candidate-row {
    margin-top: 20px;
    z-index: 5;
    position: relative;
}

.candidate-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    height: 100%;
    border: 5px solid #fff;
}

.candidate-card:hover {
    transform: translateY(-10px);
}

.candidate-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px;
    font-size: 2rem;
    font-weight: 900;
}

.candidate-img {
    width: 100%;
    height: auto;
    display: block;
}

.candidate-footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px;
    text-align: left;
    min-height: 80px;
}

.candidate-footer .name {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
}

.candidate-footer .subname {
    font-weight: 400;
    font-size: 0.9rem;
    display: block;
    text-align: right;
}

.btn-cta {
    background-color: var(--primary-color);
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin: 10px;
}

.btn-cta:hover {
    background-color: #0a2e52;
    border-color: #0a2e52;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(7, 33, 61, 0.4);
}

/* Success Card */
.success-card {
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 80px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.btn-success-custom {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 700;
}

.btn-success-custom:hover {
    background-color: #d4af20;
    border-color: #d4af20;
    color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 25px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.9rem;
}

/* Modal Header */
.modal-header {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
        white-space: nowrap;
    }

    .hero-logo {
        max-height: 65px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-card {
        padding: 30px;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-brand img {
        height: 40px;
    }

    /* Candidate Mobile Adjustments */
    .candidate-header {
        font-size: 1.2rem;
        padding: 5px;
    }

    .candidate-footer {
        padding: 8px;
        min-height: 60px;
    }

    .candidate-footer .name {
        font-size: 0.9rem;
    }

    .candidate-footer .subname {
        font-size: 0.75rem;
    }

    .candidate-card {
        border-width: 3px;
    }

    .candidate-card:hover {
        transform: none;
    }

    .btn-cta {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}