/* Tailwind is used for base layout, this file adds the fancy styling */

:root {
    /* Military Colors */
    --military-dark-green: #23270F;
    --military-sage: #818A77;
    --military-light-gray: #C1C5BC;
    --military-green: #2d4a1e;
    --military-dark: #1a2b14;
    
    /* USA Patriotic Colors */
    --usa-red: #bf0a30;
    --eagle-gold: #ffd700;
    
    /* Utility & UI Colors */
    --military-blue: #2d4a1e;
    --text-dark: #343a40;
    --text-light: #f8f9fa;
    --light-bg: #FFFFFF;
    --card-bg: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    font-family: 'Poppins', 'sans-serif';
    color: var(--text-dark);
    background-color: var(--light-bg);
}

.font-orbitron { font-family: 'Orbitron', 'sans-serif'; }
.font-military { font-family: 'Oswald', 'sans-serif'; }
.font-hind { font-family: 'Hind Siliguri', 'sans-serif'; }

.text-gold { color: var(--eagle-gold); }

/* --- Header & Footer --- */
.bg-gradient-military { background: linear-gradient(to left, #818a77 0%, #23270f 100%); }
.bg-hero-pattern { background-image: linear-gradient(rgba(26,43,20,0.8), rgba(26,43,20,0.8)), url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.shadow-military { box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.shadow-gold { box-shadow: 0 0 20px rgba(255,215,0,0.3); }
.official-seal { background: radial-gradient(circle, #ffd700 0%, #d4af37 100%); border: 3px solid #2d4a1e; }
.department-header { text-shadow: 2px 2px 4px rgba(0,0,0,0.5); letter-spacing: 1px; }
.professional-nav-item { padding: 8px 16px; border-radius: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.875rem; transition: all 0.3s ease; position: relative; }
.professional-nav-item:hover { background: rgba(255,215,0,0.1); color: #ffd700; }
.mobile-nav-item { padding: 12px 16px; display: block; color: white; text-decoration: none; border-bottom: 1px solid rgba(255,215,0,0.2); transition: all 0.3s ease; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.mobile-nav-item:hover { background: rgba(255,215,0,0.1); color: #ffd700; padding-left: 24px; }

/* --- Buttons --- */
.btn-military { background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%); border: 2px solid transparent; position: relative; overflow: hidden; transition: all 0.3s ease; }
.btn-military::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s; }
.btn-military:hover::before { left: 100%; }

/* --- Animations --- */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255,215,0,0.5); }
    50% { box-shadow: 0 0 20px rgba(255,215,0,0.8); }
}
.animate-glow { animation: glow 2s ease-in-out infinite; }

/* --- General Sections --- */
.themed-section { background-color: var(--military-green); background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://www.transparenttextures.com/patterns/military.png'); }
.service-card { background-color: var(--light-bg); border: 1px solid var(--border-color); border-radius: 10px; text-align: center; transition: all 0.3s ease; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.service-card:hover { transform: translateY(-10px); border-color: var(--military-green); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.service-card-image-container { height: 180px; background-color: #e9ecef; }
.service-card-image-container img { width: 100%; height: 100%; object-fit: cover; }
.service-card-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.service-card-content h3 { font-size: 1.5rem; min-height: 3em; margin-bottom: 1rem; color: var(--military-green); }
.service-card-content p { flex-grow: 1; color: #6c757d; margin-bottom: 1.5rem; font-size: 0.9rem; }
.service-link { display: inline-block; margin-top: auto; background-color: transparent; border: 1px solid var(--military-green); color: var(--military-green); padding: 0.75rem 1.5rem; border-radius: 5px; text-decoration: none; font-weight: bold; transition: all 0.3s; }
.service-link:hover { background-color: var(--military-green); color: var(--text-light); }

/* --- Member Search Section --- */
#apply.themed-section .text-eagle-gold { color: var(--eagle-gold); }
#apply.themed-section .border-eagle-gold { border-color: var(--eagle-gold); }
#apply.themed-section .bg-eagle-gold { background-color: var(--eagle-gold); }

/* --- FAQ Section --- */
.bg-military-green\/10 { background-color: rgba(45, 74, 30, 0.1); }

/* --- History Section --- */
.history-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

/* --- Member Page --- */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.detail-label {
    font-size: 0.875rem;
    color: var(--military-light-gray);
    text-transform: uppercase;
}
.detail-value {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--text-light);
}

/* --- Form Input Design --- */
.application-form-container {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--military-green);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 2rem 2.5rem;
}
.application-form-container .form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.form-section {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--military-green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--military-green);
    display: inline-block;
}
.form-field {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    font-weight: 600;
    color: var(--military-dark-green);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.form-input,
select.form-input,
textarea.form-input {
    width: 100%;
    background-color: #f8f9fa;
    border: 2px solid #ced4da;
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}
.form-input:focus,
select.form-input:focus,
textarea.form-input:focus {
    outline: none;
    border-color: var(--military-green);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(45, 74, 30, 0.15);
}
.form-input.file-input {
    padding: 0;
}
.form-input.file-input::file-selector-button {
    background-color: var(--military-green);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    margin-right: 1rem;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.form-input.file-input::file-selector-button:hover {
    background-color: var(--military-dark-green);
}
.terms-field { display: flex; align-items: center; margin-top: 1.5rem; }
.terms-checkbox { height: 1.25rem; width: 1.25rem; flex-shrink: 0; accent-color: var(--military-green); }
.terms-label { margin-left: 0.75rem; font-size: 0.9rem; color: #6c757d; }
.submit-field { text-align: center; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--border-color); }
.submit-application-btn {
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
    color: var(--military-dark-green);
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 1.25rem;
    padding: 0.75rem 3rem;
    border-radius: 50px;
    border: none;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.submit-application-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
}

/* --- Form Grid for Columns --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* --- Comprehensive Mobile Styles --- */
@media (max-width: 768px) {
    .department-header {
        font-size: 1.25rem; /* Smaller title on mobile */
    }
    .form-grid {
        grid-template-columns: 1fr; /* Stack form fields on mobile */
    }
    .application-form-container {
        padding: 1.5rem;
    }
    .history-card {
        padding: 1.5rem;
    }
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}


/* --- Fix for slider visibility --- */
[x-cloak] { display: none !important; }
