/*
 Theme Name: Astra Child
 Theme URI: 
 Description: Child theme for Astra
 Author: Pawan kumar
 Template: astra
 Version: 1.0.0
*/

/* ================================
   VARIABLES & BASE STYLES
================================ */
:root {
    --primary-color: #2271b1;
    --secondary-color: #135e96;
    --accent-color: #d63638;
    --bg-light: #f6f7f8;
    --text-dark: #1d2327;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.5;
    font-size: 14px;
}

.container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ================================
   HEADER STYLES (For other pages)
================================ */
.top-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.site-tagline {
    font-size: 13px;
    opacity: 0.9;
    margin: 3px 0 0 0;
}

.search-box {
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    padding: 8px 12px;
    color: white;
    width: 100%;
}

.search-box::placeholder {
    color: rgba(255,255,255,0.85);
}

/* ================================
   NAVIGATION (For all pages)
================================ */
.main-nav {
    background: #fff;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 16.5px;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-menu i {
    margin-right: 6px;
}

/* ================================
   SECTION TITLE (Home page)
================================ */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary-color);
    font-size: 26px;
}

.section-subtitle {
    font-size: 15px;
    color: #666;
    margin-top: 5px;
}

/* ================================
   STATE SECTION - ENHANCED (Home page)
================================ */
.state-section-enhanced {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.state-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.state-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
}

.state-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.state-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.state-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    text-decoration: none;
    color: var(--text-dark);
    gap: 8px;
}

.state-card a i {
    font-size: 24px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.state-card:hover a i {
    transform: scale(1.2);
    color: #667eea;
}

.state-card a span {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Old State Grid (For other pages if used) */
.state-section {
    background: white;
    margin: 15px 0;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.state-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
}

.state-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
    transform: translateY(-2px);
}

.state-item a {
    display: block;
    padding: 12px 10px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

/* ================================
   SOCIAL MEDIA SECTION - ENHANCED (Home page)
================================ */
.social-section-enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.social-section-enhanced .section-title-wrapper {
    margin-bottom: 35px;
}

.social-section-enhanced .section-title,
.social-section-enhanced .section-subtitle {
    color: white;
}

.social-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.social-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: all 0.3s ease;
}

.social-card.social-whatsapp::before { background: #25D366; }
.social-card.social-telegram::before { background: #0088cc; }
.social-card.social-facebook::before { background: #1877f2; }
.social-card.social-instagram::before { background: #E4405F; }
.social-card.social-youtube::before { background: #FF0000; }
.social-card.social-twitter::before { background: #1DA1F2; }

.social-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.social-card:hover::before {
    width: 8px;
}

.social-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.social-whatsapp .social-icon-wrapper { background: linear-gradient(135deg, #25D366, #128C7E); }
.social-telegram .social-icon-wrapper { background: linear-gradient(135deg, #0088cc, #006699); }
.social-facebook .social-icon-wrapper { background: linear-gradient(135deg, #1877f2, #0d5dbf); }
.social-instagram .social-icon-wrapper { background: linear-gradient(135deg, #E4405F, #833ab4); }
.social-youtube .social-icon-wrapper { background: linear-gradient(135deg, #FF0000, #cc0000); }
.social-twitter .social-icon-wrapper { background: linear-gradient(135deg, #1DA1F2, #0c85d0); }

.social-content {
    flex: 1;
}

.social-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.social-content p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.social-arrow {
    color: #ccc;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-card:hover .social-arrow {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Old Social Grid (For sidebar or other pages) */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: white;
}

.social-btn i {
    margin-right: 5px;
}

.social-btn.whatsapp { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); }
.social-btn.telegram { background: linear-gradient(135deg, #0088cc 0%, #006699 100%); }
.social-btn.facebook { background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%); }
.social-btn.instagram { background: linear-gradient(135deg, #e4405f 0%, #833ab4 100%); }
.social-btn.youtube { background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%); }
.social-btn.twitter { background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%); }

/* ================================
   FEATURED SECTION - ENHANCED (Home page)
================================ */
.featured-section-enhanced {
    margin-bottom: 40px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.featured-card {
    position: relative;
    padding: 25px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: all 0.5s ease;
}

.featured-card:hover::before {
    top: -30%;
    right: -30%;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.25);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-card h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    padding-top: 16px;
}

.featured-date {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.featured-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.featured-card:hover .featured-arrow {
    background: rgba(255,255,255,0.3);
    transform: translateX(5px);
}

/* Old Featured Boxes (For other pages if used) */
.featured-row {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.featured-box {
    flex: 1;
    min-width: 180px;
    padding: 20px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    color: white;
}

.featured-box h6 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.featured-box small {
    font-size: 11px;
    opacity: 0.9;
}

/* ================================
   JOBS GRID SECTION (Home page)
================================ */
.jobs-grid-section {
    margin-bottom: 40px;
}

.jobs-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.job-column {
    min-width: 0;
}

.job-box {
    height: 100%;
}

/* ================================
   CONTENT BOXES (All pages)
================================ */
.box {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.box:hover {
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

.box-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16.5px;
    font-weight: 600;
}

.box-header i {
    margin-right: 8px;
}

.box-header span {
    font-weight: 600;
    font-size: 16.5px;
}

.view-link {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-link:hover {
    background: rgba(255,255,255,0.35);
    color: white;
    transform: translateX(3px);
}

.box-body {
    padding: 0;
}

/* ================================
   LIST ITEMS (All pages)
================================ */
.list-item {
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: linear-gradient(90deg, #f8f9fa 0%, #ffffff 100%);
}

.list-content {
    padding: 14px 18px;
}

.list-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.list-item a i.fa-angle-right {
    color: var(--primary-color);
    font-size: 16px;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.list-item:hover a {
    color: var(--primary-color);
}

.list-item:hover a i.fa-angle-right {
    transform: translateX(3px);
}

.list-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    margin-left: 24px;
}

.list-meta i {
    font-size: 11px;
}

/* ================================
   BADGES (All pages)
================================ */
.badge-new,
.badge-hot,
.badge-active {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 8px;
    letter-spacing: 0.5px;
    line-height: 1;
    vertical-align: middle;
    animation: fadeIn 0.3s ease-in;
}

.badge-new {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

.badge-hot {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.badge-active {
    background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 68, 68, 0.5);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   SIDEBAR WIDGETS (All pages)
================================ */
.sidebar-widget {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.widget-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 14px;
}

.widget-header i {
    margin-right: 7px;
}

.widget-body {
    padding: 15px;
}

.widget-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.widget-item:last-child {
    border-bottom: none;
}

.widget-item a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    display: block;
}

.widget-item a:hover {
    color: #007bff;
}

.widget-meta {
    color: #888;
    font-size: 11px;
    margin-top: 3px;
}

/* ================================
   FOOTER (All pages)
================================ */
footer {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 30px 0 15px;
    margin-top: 40px;
}

footer h5 {
    color: white;
    font-size: 16.5px;
    margin-bottom: 15px;
    font-weight: 600;
}

footer a {
    color: #95a5a6;
    text-decoration: none;
    font-size: 16.5px;
    display: block;
    margin-bottom: 6px;
}

footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    margin-top: 25px;
    padding-top: 15px;
    text-align: center;
    font-size: 16.5px;
}

/* ================================
   ASTRA THEME OVERRIDES
================================ */
header#masthead {
    display: none;
}

footer#colophon {
    display: none;
}

.site-content .ast-container {
    display: block;
}

@media (min-width: 922px) {
    .ast-narrow-container .site-content > .ast-container {
        max-width: 1240px;
    }
}

span a {
    color: #fff !important;
}

/* ================================
   RESPONSIVE DESIGN
================================ */
@media (max-width: 1024px) {
    .state-grid-enhanced {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .jobs-row {
        gap: 20px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 991px) {
    .state-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .jobs-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .state-grid-enhanced {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .state-card a {
        padding: 15px 10px;
    }
    
    .state-card a span {
        font-size: 13px;
    }
    
    .social-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .state-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .featured-row {
        flex-direction: column;
    }
    
    .featured-box {
        min-width: 100%;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .state-grid-enhanced {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .state-section-enhanced,
    .social-section-enhanced {
        padding: 25px 20px;
    }
    
    .section-title {
        font-size: 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .list-item a {
        font-size: 13px;
    }
    
    .list-meta {
        font-size: 11px;
    }
    
    .state-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .state-item a {
        font-size: 12px;
        padding: 10px 8px;
    }
}