/* Custom Premium CSS for School Safety & Infrastructure Helper Portal */

:root {
    --bg-dark: #1c1917; /* Dark Carbon theme background */
    --bg-card: rgba(41, 37, 36, 0.7);
    --bg-card-hover: rgba(68, 64, 60, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(234, 88, 12, 0.3);
    
    --primary: #ea580c; /* Orange */
    --primary-hover: #d97706;
    --teal: #fb923c;
    --teal-hover: #f97316;
    
    --text-main: #fafaf9;
    --text-muted: #e7e5e4;
    
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navbar */
.navbar {
    background-color: rgba(28, 25, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: #ffffff;
}

.cta-nav {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.cta-nav:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    max-width: 650px;
}

.badge {
    display: inline-block;
    background-color: rgba(234, 88, 12, 0.15);
    color: #ff9d5c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 6px 12px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(234, 88, 12, 0.3);
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 40%, #ffedd5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 32px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

/* Search Widget Section */
.search-widget-section {
    padding: 40px 0;
}

.search-widget-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(28, 25, 23, 0.8) 100%);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-widget-card h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.search-widget-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-box-dummy {
    display: flex;
    max-width: 600px;
    margin: 0 auto 16px;
    background-color: rgba(28, 25, 23, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    padding: 6px;
}

.search-box-dummy input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}

.inline-search-btn {
    padding: 10px 20px !important;
}

.search-tags {
    font-size: 13px;
    color: var(--text-muted);
}

.search-tags a {
    color: #ff9d5c;
    text-decoration: none;
    margin-left: 10px;
    font-weight: 500;
    transition: var(--transition);
}

.search-tags a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Info Section */
.info-details {
    padding: 60px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.info-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 16px;
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--border-glow);
    background-color: var(--bg-card-hover);
}

.info-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}

.info-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
    text-align: justify;
}

.content-link {
    color: #ff9d5c;
    text-decoration: none;
    font-weight: 600;
}

.content-link:hover {
    text-decoration: underline;
}

.info-card ul {
    list-style: none;
    margin-top: 12px;
}

.info-card ul li {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.info-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: bold;
}

/* States Section */
.states-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(28, 25, 23, 0.5) 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 15px;
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.state-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px 16px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.state-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    background-color: var(--bg-card-hover);
}

.state-code {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    margin: 0 auto 12px;
}

.state-code.up { background-color: rgba(37, 99, 235, 0.15); color: #60a5fa; }
.state-code.mh { background-color: rgba(225, 29, 72, 0.15); color: #f43f5e; }
.state-code.mp { background-color: rgba(13, 148, 136, 0.15); color: #2dd4bf; }
.state-code.br { background-color: rgba(22, 101, 52, 0.15); color: #4ade80; }
.state-code.rj { background-color: rgba(109, 40, 217, 0.15); color: #a78bfa; }
.state-code.ka { background-color: rgba(249, 115, 22, 0.15); color: #fb923c; }
.state-code.wb { background-color: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.state-code.gj { background-color: rgba(234, 179, 8, 0.15); color: #facc15; }
.state-code.tn { background-color: rgba(236, 72, 153, 0.15); color: #f472b6; }
.state-code.ap { background-color: rgba(16, 185, 129, 0.15); color: #34d399; }

.state-card h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.state-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.state-card a {
    color: #ff9d5c;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.state-card a:hover {
    text-decoration: underline;
}

.states-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: var(--text-muted);
}

.states-footer a {
    color: #ff9d5c;
    text-decoration: none;
    font-weight: 600;
}

.states-footer a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.faq-title {
    text-align: center;
    font-size: 30px;
    margin-bottom: 40px;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.faq-item h4 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 13.5px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background-color: #0f0e0d;
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
}

.footer-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-attribution a {
    color: #ff9d5c;
    text-decoration: none;
    font-weight: 600;
}

.footer-attribution a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .search-widget-card {
        padding: 24px;
    }
    
    .search-box-dummy {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 10px;
    }
    
    .search-box-dummy input {
        background-color: rgba(28, 25, 23, 0.9);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        width: 100%;
    }
}
