/* =========================
   DOC Landing Page - Modern Professional Design
   Inspired by CDCR.ca.gov
========================= */

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #003366;
    --secondary-blue: #004080;
    --accent-red: #B31B1B;
    --light-gray: #F5F7FA;
    --medium-gray: #E8ECF1;
    --dark-gray: #2C3E50;
    --text-primary: #1A1A1A;
    --text-secondary: #5A6C7D;
    --white: #FFFFFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--white);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-width: 320px;
}

* {
    box-sizing: border-box;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

/* Top Bar */
.top-bar {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    transition: opacity 0.3s;
}

.top-bar a:hover {
    opacity: 0.8;
}

.emergency-contact i {
    color: var(--accent-red);
}

/* Main Header */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
}

.logo-sub {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-blue);
    border-bottom-color: var(--accent-red);
}

.main-nav .staff-login {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    border-bottom: none;
}

.main-nav .staff-login:hover {
    background-color: var(--secondary-blue);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 120px 0;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 99, 29, 0.154) 0%, rgba(37, 160, 37, 0.88) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 20px;
    max-width: 700px;
    margin-bottom: 35px;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-hero {
    display: inline-block;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-hero.primary {
    background-color: var(--accent-red);
    color: var(--white);
}

.btn-hero.primary:hover {
    background-color: #8F1515;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(179, 27, 27, 0.4);
}

.btn-hero.secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-hero.secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* Quick Access Cards */
.quick-access {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.quick-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-red));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.quick-card:hover::before {
    transform: scaleX(1);
}

.quick-icon {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.quick-card h3 {
    font-size: 20px;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 600;
}

.quick-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.quick-arrow {
    color: var(--accent-red);
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-card:hover .quick-arrow {
    opacity: 1;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--primary-blue);
}

.stats-section .section-title {
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-box {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-left-color: var(--accent-red);
}

.service-icon {
    font-size: 40px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--primary-blue);
}

.service-link i {
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.service-link:hover i {
    margin-left: 10px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--accent-red) 0%, #8F1515 100%);
    color: var(--white);
    padding: 60px 0;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-text h2 {
    font-size: 32px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-text p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 700px;
}

.btn-cta {
    display: inline-block;
    background-color: var(--white);
    color: var(--accent-red);
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* News Section */
.news-section {
    padding: 80px 0;
    background-color: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.news-date {
    color: var(--accent-red);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 20px;
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-weight: 600;
}

.news-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: var(--accent-red);
}

.news-link i {
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.news-link:hover i {
    margin-left: 10px;
}

/* =========================
   Info Section
========================= */
.info-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-box h3 {
    margin-bottom: 10px;
    color: #002f5f;
}

.info-box p {
    font-size: 14px;
}

/* =========================
   Footer
========================= */
.main-footer {
    background-color: #002f5f;
    color: #ffffff;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.footer-note {
    opacity: 0.8;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

/* Tablet & Small Desktop (max-width: 992px) */
@media (max-width: 992px) {
    .hero-title {
        font-size: 38px;
    }
    
    .main-nav ul {
        gap: 20px;
    }
    
    .main-nav a {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .quick-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait (max-width: 768px) */
@media (max-width: 768px) {
    /* Top Bar */
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .emergency-contact {
        font-size: 12px;
    }
    
    .top-links {
        display: flex;
        gap: 15px;
    }
    
    .top-bar a {
        margin-left: 0;
    }
    
    /* Header */
    .header-flex {
        flex-direction: column;
        gap: 20px;
        padding: 15px 0;
    }
    
    .logo-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .logo-main {
        font-size: 18px;
    }
    
    .logo-sub {
        font-size: 12px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .main-nav a {
        font-size: 13px;
        padding: 6px 0;
    }
    
    .main-nav .staff-login {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-hero {
        width: 100%;
        padding: 12px 25px;
    }
    
    /* Quick Access */
    .quick-access {
        margin-top: -30px;
        padding-bottom: 40px;
    }
    
    .quick-grid,
    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Statistics */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-number {
        font-size: 42px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    /* Services Section */
    .services-section,
    .news-section {
        padding: 60px 0;
    }
    
    .service-card,
    .news-card {
        padding: 25px;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-text h2 {
        font-size: 26px;
        justify-content: center;
    }
    
    .cta-text p {
        font-size: 16px;
    }
    
    .btn-cta {
        padding: 15px 35px;
        font-size: 16px;
    }
    
    /* Footer */
    .main-footer {
        padding: 30px 0 15px;
    }
    
    .footer-flex {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    /* Container */
    .container {
        width: 95%;
    }
    
    /* Top Bar */
    .top-bar {
        padding: 10px 0;
    }
    
    .emergency-contact {
        font-size: 11px;
    }
    
    .top-links a {
        font-size: 12px;
    }
    
    /* Header */
    .header-flex {
        padding: 10px 0;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-main {
        font-size: 14px;
    }
    
    .logo-sub {
        font-size: 10px;
    }
    
    .main-nav ul {
        gap: 8px;
        padding: 0;
    }
    
    .main-nav li {
        flex: 0 0 auto;
    }
    
    .main-nav a {
        font-size: 11px;
        padding: 5px 8px;
        white-space: nowrap;
    }
    
    .main-nav .staff-login {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .main-nav .staff-login i {
        display: none;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 60px 0;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 26px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .btn-hero {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Quick Access */
    .quick-access {
        margin-top: -20px;
        padding-bottom: 30px;
    }
    
    .quick-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .quick-card {
        padding: 20px 15px;
    }
    
    .quick-icon {
        font-size: 28px;
    }
    
    .quick-card h3 {
        font-size: 17px;
    }
    
    .quick-card p {
        font-size: 13px;
        line-height: 1.4;
    }
    
    /* Statistics */
    .stats-section {
        padding: 40px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 24px;
    }
    
    /* Services */
    .services-section {
        padding: 40px 0;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 34px;
    }
    
    .service-card h3 {
        font-size: 19px;
    }
    
    .service-card p {
        font-size: 14px;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-content {
        gap: 20px;
        padding: 0;
    }
    
    .cta-text h2 {
        font-size: 20px;
        flex-direction: column;
        gap: 8px;
        line-height: 1.3;
    }
    
    .cta-text h2 i {
        font-size: 18px;
    }
    
    .cta-text p {
        font-size: 13px;
        line-height: 1.5;
        max-width: 100%;
    }
    
    .btn-cta {
        padding: 12px 20px;
        font-size: 13px;
        width: 100%;
        white-space: normal;
    }
    
    /* News Section */
    .news-section {
        padding: 40px 0;
    }
    
    .news-card {
        padding: 20px;
    }
    
    .news-date {
        font-size: 12px;
    }
    
    .news-card h3 {
        font-size: 18px;
    }
    
    .news-card p {
        font-size: 14px;
    }
    
    /* Footer */
    .main-footer {
        padding: 25px 0 10px;
    }
    
    .footer-flex {
        font-size: 12px;
    }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .hero-subtitle {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .service-card h3,
    .news-card h3 {
        font-size: 16px;
    }
    
    .btn-hero,
    .btn-cta {
        font-size: 12px;
        padding: 10px 15px;
    }
    
    .logo-main {
        font-size: 13px;
    }
    
    .logo-sub {
        font-size: 9px;
    }
    
    .main-nav a {
        font-size: 10px;
        padding: 4px 6px;
    }
    
    .cta-text h2 {
        font-size: 18px;
    }
    
    .cta-text p {
        font-size: 12px;
    }
}

/* =========================
   Recruitment Application Styles
========================= */

.recruitment-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.recruitment-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border-radius: 8px 8px 0 0;
    margin: -20px -20px 30px -20px;
}

.recruitment-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
}

.recruitment-header .batch-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.form-section {
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    background: var(--light-gray);
}

.form-section h2 {
    color: var(--primary-blue);
    margin: 0 0 20px 0;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h2 i {
    color: var(--secondary-blue);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group label .required {
    color: var(--accent-red);
    margin-left: 3px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto;
    cursor: pointer;
}

.conditional-field {
    margin-top: 15px;
    padding: 15px;
    background: var(--white);
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
    display: none;
}

.conditional-field.show {
    display: block;
}

.submit-section {
    text-align: center;
    padding: 30px 20px;
    background: var(--light-gray);
    border-radius: 8px;
    margin-top: 30px;
}

.btn-submit {
    padding: 15px 50px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.4);
}

.btn-back {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    color: var(--primary-blue);
    text-decoration: none;
    border: 1px solid var(--primary-blue);
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-back:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.lang-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1001;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    overflow: hidden;
}

.lang-toggle button {
    padding: 10px 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    color: var(--text-primary);
}

.lang-toggle button.active {
    background: var(--primary-blue);
    color: var(--white);
}

.lang-toggle button:hover:not(.active) {
    background: var(--light-gray);
}

@media (max-width: 768px) {
    .recruitment-container {
        margin: 20px 10px;
        padding: 15px;
    }
    
    .recruitment-header h1 {
        font-size: 1.8em;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .lang-toggle {
        top: 60px;
        right: 10px;
    }
}
