/* State Units Page Specific Styles - Premium Redesign */

:root {
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

.section-padding {
    padding: 50px 0;
}

/* Inner Banner */
.inner-banner {
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    position: relative;
    overflow: hidden;

    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #1a1625; /* Dark background matching the map */
}

/* Removed before pseudo-element to stop tinting the map */

.banner-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

/* Presence Section */
.presence-section {
    background: #f8f9fa;
}

.presence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.presence-content h2 {
    font-size: 42px;
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 25px;
}

.presence-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.p-stat-box {
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.p-stat-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--orange) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.p-stat-box h3 {
    font-size: 32px;
    color: var(--orange);
    margin-bottom: 5px;
    transition: var(--transition);
}

.p-stat-box p {
    transition: var(--transition);
}

.p-stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(242, 98, 34, 0.2);
}

.p-stat-box:hover::before {
    opacity: 1;
}

.p-stat-box:hover h3, .p-stat-box:hover p {
    color: var(--white);
}

.presence-image {
    transition: var(--transition);
    border-radius: 20px;
    padding: 20px;
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.presence-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(43, 87, 151, 0.1) 0%, rgba(242, 98, 34, 0.1) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
    border-radius: 20px;
}

.presence-image img {
    transition: var(--transition);
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.05));
}

.presence-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(242, 98, 34, 0.15);
}

.presence-image:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(43, 87, 151, 0.15) 0%, rgba(242, 98, 34, 0.15) 100%);
}

.presence-image:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 30px rgba(242, 98, 34, 0.4));
    opacity: 1 !important;
}

/* State Grid */
.state-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.state-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.state-card:hover {
    transform: translateY(-8px);
    border-color: var(--orange);
    box-shadow: 0 10px 25px rgba(242, 98, 34, 0.1);
}

.state-icon {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 15px;
    transition: 0.3s;
}

.state-card:hover .state-icon {
    color: var(--orange);
}

.state-card h4 {
    font-size: 18px;
    font-family: var(--font-heading);
    margin-bottom: 5px;
}

.state-card span {
    font-size: 12px;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
}

.aff-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 10px;
    border-radius: 10px;
    margin-top: 10px;
}

/* Search Box */
.search-container {
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.state-search {
    width: 100%;
    padding: 20px 30px;
    border-radius: 40px;
    border: 2px solid #eee;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

.state-search:focus {
    border-color: var(--orange);
    box-shadow: 0 0 15px rgba(242, 98, 34, 0.1);
}

/* Responsive */
@media (max-width: 1200px) {
    .state-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .presence-grid { grid-template-columns: 1fr; text-align: center; }
    .state-grid { grid-template-columns: repeat(2, 1fr); }
    .banner-title { font-size: 42px; }
}

@media (max-width: 576px) {
    .state-grid { grid-template-columns: 1fr; }
}
