/* ===============================
   PPDB 2026 - Main Stylesheet
   =============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation Bar */
.navbar {
    background-color: #2c503c;
    color: #fff;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 1;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.navbar-logo-img {
    height: 50px;
    width: 50px;
    object-fit: contain;
    display: block;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content */
main {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

main h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Buttons */
.btn, button[type="submit"] {
    background-color: #3498db;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover, button[type="submit"]:hover {
    background-color: #2980b9;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-success {
    background-color: #27ae60;
}

.btn-success:hover {
    background-color: #229954;
}

/* Login & Register Forms */
.login-form, .register-form {
    max-width: 400px;
    margin: 50px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-form h1, .register-form h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

.login-form p, .register-form p {
    text-align: center;
    margin-top: 20px;
}

.login-form a, .register-form a {
    color: #3498db;
    text-decoration: none;
}

.login-form a:hover, .register-form a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.alert-error {
    background-color: #fadbd8;
    color: #c0392b;
    border-color: #e74c3c;
}

.alert-success {
    background-color: #d5f4e6;
    color: #27ae60;
    border-color: #229954;
}

.alert-info {
    background-color: #d6eaf8;
    color: #2980b9;
    border-color: #3498db;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th {
    background-color: #2c3e50;
    color: #fff;
    padding: 12px;
    text-align: left;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #bdc3c7;
}

table tr:hover {
    background-color: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 15px;
    }

    .navbar-logo {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .logo-img {
        height: 40px;
    }

    .navbar-logo span {
        font-size: 16px;
    }

    .nav-menu {
        flex-direction: row;
        gap: 15px;
        justify-content: center;
    }

    .login-form, .register-form {
        margin: 20px;
    }

    main {
        margin-top: 10px;
        padding: 15px;
    }
}

/* ===============================
   Hero Section & Buttons
   =============================== */
.hero {
    background-image: url('../images/hero-bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-color: #1a1a1a;
    color: white;
    padding: 150px 20px 80px 20px;
    text-align: center;
    position: relative;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-logos {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 40px;
    box-sizing: border-box;
}

.logo-left {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-right {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
}

.logo-left img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
    object-fit: contain;
    display: block;
}

.logo-right img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
    object-fit: contain;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 1000px;
    width: 100%;
}

.hero h1 {
    font-size: 60px;
    margin: 0 0 20px 0;
    text-shadow: 4px 4px 15px rgba(0,0,0,0.8);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1.1;
}

.hero p {
    font-size: 24px;
    margin: 0 0 50px 0;
    color: #ffffff;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.7);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: white;
    color: #438244;
    padding: 16px 50px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    background: #f8f8f8;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 16px 50px;
    border: 2px solid rgba(255,255,255,0.9);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
    box-shadow: 0 6px 20px rgba(255,255,255,0.2);
    transform: translateY(-4px);
}

/* ===============================
   Info Cards Grid
   =============================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 50px 0;
}

.info-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #6dc28c;
}

.info-card h3 {
    color: #66ea9f;
    margin-bottom: 10px;
}

.info-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-logos {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 15px 60px 15px;
        min-height: 550px;
    }

    .hero-logos {
        left: 10px;
        right: 10px;
        padding: 0;
    }

    .logo-left, .logo-right {
        width: 80px;
        height: 80px;
    }

    .hero h1 {
        font-size: 40px;
        margin-bottom: 15px;
        text-shadow: 3px 3px 10px rgba(0,0,0,0.7);
    }

    .hero p {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        padding: 14px 30px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 10px 50px 10px;
        min-height: 450px;
    }

    .logo-left, .logo-right {
        width: 65px;
        height: 65px;
    }

    .hero h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 25px;
        font-size: 14px;
    }
}
