:root {
    --primary-color: #b30000;
    --primary-dark: #8e0000;
    --accent-color: #ffcc00;
    --bg-light: #f4f7f6;
    --text-dark: #333;
    --text-muted: #777;
    --white: #ffffff;
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- SIDE PANEL --- */
.side-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px; 
    height: 100vh;
    background-color: var(--white);
    z-index: 4000;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s;
    padding: 30px 20px; 
    border-right: 5px solid var(--accent-color);
    text-align: center;
}

.side-panel::after {
    content: "TEMPLATES";
    position: absolute;
    right: -36px; 
    top: 50%;
    transform: rotate(90deg) translateY(-50%);
    transform-origin: bottom;
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}

.side-panel.open {
    transform: translateX(0); 
    box-shadow: 5px 0 15px rgba(0,0,0,0.2);
}

@media (min-width: 769px) {
    .side-panel:hover {
        transform: translateX(0); 
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
    }
}

.panel-content {
    height: 100%; 
    overflow-y: auto; 
    scrollbar-width: thin;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.panel-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
    font-size: 1.25rem; 
    text-align: center;
    width: 100%;
}

.panel-links {
    list-style: none;
    width: 100%;
}

.panel-links > li {
    margin-bottom: 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.panel-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    font-size: 1.05rem; 
    text-align: center;
}

.template-box {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #ddd;
    width: 100%;
    text-align: center;
}

.template-btn {
    background: var(--accent-color) !important;
    color: var(--text-dark) !important;
    padding: 10px 15px !important;
    border-radius: 6px !important;
    font-size: 0.95rem !important;
    font-weight: bold !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: 0.2s !important;
    width: 100%;
    display: block;
}

.template-btn:hover {
    background: #e6b800 !important;
    transform: translateY(-2px);
}

/* --- NAVIGATION STYLES --- */
nav {
    background-color: var(--primary-color);
    padding: 15px 5%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    color: white;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 3000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    background: white;
}

.logo { 
    color: white; 
    text-decoration: none; 
    font-weight: 800; 
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    line-height: 1.1;
    display: block;
}

.menu-toggle {
    display: none;
    font-size: 2.2rem;
    cursor: pointer;
    color: white;
    user-select: none;
}

.nav-links { 
    list-style: none; 
    display: flex; 
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links li { 
    margin: 0; 
}

.nav-links a { 
    color: white; 
    text-decoration: none; 
    font-size: 1.05rem; 
    font-weight: 500;
    transition: color 0.3s;
    padding: 6px 10px;
}

.nav-links a:hover, .nav-links a.active-link { 
    color: var(--accent-color); 
}

.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-login {
    color: white;
    border: 2px solid var(--accent-color);
    background: transparent;
}

.btn-login:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.btn-signup {
    background-color: var(--accent-color);
    color: var(--text-dark);
    border: 2px solid var(--accent-color);
}

.btn-signup:hover {
    background-color: #e6b800;
    border-color: #e6b800;
}

/* --- HERO SECTION --- */
.mini-hero {
    min-height: 38vh;
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(179, 0, 0, 0.5)), url('../pictures/dhvsu.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    width: 100%;
    padding: 50px 20px;
}

.hero-content {
    animation: fadeIn 0.8s ease-out;
    max-width: 850px;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.mini-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    font-weight: 800;
    line-height: 1.2;
}

.mini-hero p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    line-height: 1.6;
}

/* --- MAIN CONTENT & CARDS --- */
.container { 
    max-width: 1200px; 
    margin: 50px auto; 
    padding: 0 25px; 
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 2.1rem;
    text-align: center; 
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* --- ABOUT GRID (Naka-side by side tulad ng dati, hindi ginalaw) --- */
.about-grid { 
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
    width: 100%;
}

/* --- STEPS CONTAINER (Quick Submission Steps - Naka-vertical stack, malaki at malapad) --- */
.steps-container { 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* --- CONTACT GRID --- */
.contact-grid { 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* --- CONTACT INFO CONTAINER FIX --- */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

/* --- CARDS & CONTACT BOXES --- */
.card, .contact-box, .info-card, .step-item { 
    background: white; 
    padding: 35px 30px; 
    min-height: 160px; 
    border-radius: 12px; 
    box-shadow: var(--shadow-sm); 
    border-top: 5px solid var(--accent-color); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin: 0;
}

.card:hover, .contact-box:hover, .info-card:hover, .step-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card h3, .contact-box h3, .info-card h3, .step-item h3 {
    margin-bottom: 5px;
    color: var(--text-dark);
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
}

.card p, .contact-box p, .info-card p, .step-item p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

/* --- STEP NUMBER STYLING --- */
.step-number {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: var(--shadow-sm);
}

/* --- CONTACT FORM & INPUT STYLING --- */
form, .contact-form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea,
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    margin: 0 auto;
    display: block;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
    text-align: left;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

form input:focus,
form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 10px rgba(179, 0, 0, 0.15);
}

form textarea, .contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

form button,
form input[type="submit"],
.contact-form button,
.btn-submit {
    display: block;
    width: 100%;
    margin: 10px auto 0 auto;
    padding: 14px 20px;
    background-color: var(--accent-color) !important;
    color: var(--text-dark) !important;
    border: 2px solid var(--accent-color) !important;
    border-radius: 8px !important;
    font-size: 1.05rem !important;
    font-weight: bold !important;
    cursor: pointer;
    text-align: center !important;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

form button:hover,
form input[type="submit"]:hover,
.contact-form button:hover,
.btn-submit:hover {
    background-color: #e6b800 !important;
    border-color: #e6b800 !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- FOOTER --- */
footer { 
    background: var(--primary-color); 
    color: white; 
    text-align: center; 
    padding: 30px 20px; 
    margin-top: auto; 
    width: 100%;
    font-size: 1rem;
}

/* =========================================
   MOBILE RESPONSIVE FIXES
   ========================================= */
@media (max-width: 768px) {
    nav {
        grid-template-columns: 1fr auto !important;
        padding: 15px 20px !important;
    }

    .menu-toggle {
        display: block !important;
    }

    .side-panel {
        width: 280px !important;
        top: 75px !important;
        height: calc(100vh - 75px) !important;
        z-index: 2500 !important;
        text-align: center !important;
    }

    .side-panel::after {
        right: -36px !important; 
        padding: 10px 8px !important;
        font-size: 0.75rem !important;
    }

    .nav-links {
        display: none;
        grid-column: 1 / -1;
        flex-direction: column !important;
        width: 100% !important;
        margin-top: 15px !important;
        padding: 20px 0 10px 0 !important;
        gap: 15px !important;
        text-align: center !important;
        border-top: 1px solid rgba(255,255,255,0.25) !important;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        width: 100% !important;
        text-align: center !important;
    }

    .nav-links a {
        font-size: 1.1rem !important;
        padding: 10px 0 !important;
        display: block !important;
        text-align: center !important;
    }

    .auth-buttons {
        display: none;
        grid-column: 1 / -1;
        flex-direction: column !important;
        width: 100% !important;
        padding: 15px 0 20px 0 !important;
        gap: 15px !important;
        align-items: center !important;
        text-align: center !important;
    }

    .auth-buttons.active {
        display: flex !important;
    }

    .auth-buttons .btn {
        width: 85% !important;
        margin: 0 auto !important;
        padding: 12px 20px !important;
        text-align: center !important;
        font-size: 1.05rem !important;
    }

    .about-grid, .steps-container, .contact-grid {
        max-width: 100% !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .mini-hero {
        min-height: 35vh !important;
        padding: 40px 20px !important;
    }

    .mini-hero h1 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }

    .mini-hero p {
        font-size: 1.05rem !important;
        padding: 0 10px !important;
    }

    .container {
        margin: 30px auto !important;
        padding: 0 20px !important;
    }

    .section-title {
        font-size: 1.7rem !important;
        margin-bottom: 30px !important;
    }

    .card, .contact-box, .info-card, .step-item {
        padding: 25px 20px !important;
        gap: 12px !important;
        min-height: auto !important;
    }
}