/* ============================================
   RESOURCES PAGE STYLES
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */

.resources-hero {
    background-color: var(--primary-color);
    background-image:
        linear-gradient(135deg,
            rgba(0, 0, 0, 0.62) 0%,
            rgba(0, 0, 0, 0.65) 50%,
            rgba(0, 0, 0, 0.65) 100%),
        url('https://images.pexels.com/photos/1181534/pexels-photo-1181534.jpeg?auto=compress&cs=tinysrgb&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
    text-align: center;
}

.resources-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(33, 150, 243, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(26, 84, 144, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.resources-hero-content {
    position: relative;
    z-index: 2;
}

.resources-hero-content h1 {
    font-family: 'Poppins', var(--font-sans), sans-serif;
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-light);
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.resources-hero-content p {
    font-family: 'Inter', var(--font-sans), sans-serif;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* ============================================
   NAVIGATION PILLS
   ============================================ */

.resources-nav {
    background: white;
    padding: 30px 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-pills {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-family: 'Inter', var(--font-sans), sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.nav-pill i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.nav-pill:hover {
    border-color: var(--primary-color);
    background: var(--light-bg);
    transform: translateY(-2px);
}

.nav-pill.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(26, 84, 144, 0.3);
}

.nav-pill.active i {
    transform: scale(1.1);
}

/* ============================================
   RESOURCES CONTENT
   ============================================ */

.resources-content {
    background: #ffffff;
    padding: 80px 20px 100px;
}

.resource-section {
    margin-bottom: 80px;
    scroll-margin-top: 120px;
}

.resource-section:last-child {
    margin-bottom: 0;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--light-bg);
    position: relative;
}

.section-icon {
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}

.section-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.section-icon i {
    font-size: 32px;
    color: white;
}

.section-header h2 {
    font-family: 'Poppins', var(--font-sans), sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.section-header p {
    font-family: 'Inter', var(--font-sans), sans-serif;
    font-size: 16px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Resource Grid */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 32px;
    margin-top: 16px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 32px;
    margin-top: 16px;
    padding: 0;
}

/* Resource Cards */
.resource-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    padding-right: 56px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: 90px;
}

.resource-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    /* background: linear-gradient(180deg, var(--primary-color), var(--secondary-color)); */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resource-card:hover::before {
    opacity: 1;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 84, 144, 0.12);
}

.resource-card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.resource-card-icon i {
    font-size: 24px;
    background: linear-gradient(135deg, #1e40af, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.resource-card:hover .resource-card-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.resource-card h3 {
    font-family: 'Poppins', var(--font-sans), sans-serif;
    font-size: 15.5px;
    font-weight: 500;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    flex: 1;
    word-wrap: break-word;
    letter-spacing: -0.01em;
}

.resource-card:hover h3 {
    color: var(--primary-color);
}

.resource-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.resource-arrow i {
    font-size: 13px;
    color: #475569;
    transition: all 0.3s ease;
}

.resource-card:hover .resource-arrow {
    transform: translateY(-50%) translateX(3px);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.resource-card:hover .resource-arrow i {
    color: white;
}

/* City Cards Specific Styles */
.city-card {
    /* Inherits all styles from .resource-card */
    /* No specific overrides needed - cities look identical to other sections */
}

.city-card h3 {
    /* Same as regular resource cards */
}

.city-subtitle {
    /* Hide subtitle for city cards to match other sections */
    display: none;
}

/* ============================================
   CTA SECTION
   ============================================ */

.resources-cta {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a365d 50%, var(--primary-color) 100%);
    position: relative;
    overflow: hidden;
}

.resources-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.resources-cta::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 84, 144, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.resources-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.resources-cta-content h2 {
    font-family: 'Poppins', var(--font-sans), sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.resources-cta-content p {
    font-family: 'Inter', var(--font-sans), sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 400;
}

.resources-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.resources-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    border-radius: 14px;
    font-family: 'Poppins', var(--font-sans), sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.resources-cta-btn::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 ease;
}

.resources-cta-btn:hover::before {
    left: 100%;
}

.resources-cta-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.resources-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.5);
}

.resources-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.resources-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

/* ============================================
   RESPONSIVE DESIGN - UPDATED BREAKPOINTS
   ============================================ */

/* Large Tablets and Small Desktops: 1200px - 1440px */
@media (max-width: 1440px) {
    .resources-hero-content h1 {
        font-size: 48px;
    }

    .section-header h2 {
        font-size: 30px;
    }
}

/* Tablets and Medium Screens: 1024px - 1199px */
@media (max-width: 1199px) {

    .resource-grid,
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 24px;
    }

    .resources-hero-content h1 {
        font-size: 44px;
    }

    .resources-hero-content p {
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .resources-cta-content h2 {
        font-size: 38px;
    }
}

/* Small Tablets: 768px - 1023px */
@media (max-width: 1023px) {
    .resources-hero {
        padding: 80px 20px;
    }

    .resources-hero-content h1 {
        font-size: 40px;
    }

    .resources-hero-content p {
        font-size: 17px;
        max-width: 600px;
    }

    .resources-nav {
        padding: 20px 15px;
    }

    .nav-pills {
        gap: 10px;
    }

    .nav-pill {
        padding: 11px 22px;
        font-size: 13.5px;
    }

    .resources-content {
        padding: 70px 20px 90px;
    }

    .resource-section {
        margin-bottom: 70px;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-icon {
        width: 56px;
        height: 56px;
    }

    .section-icon i {
        font-size: 30px;
    }

    .resource-card {
        padding: 22px 26px;
        padding-right: 54px;
    }

    .resource-card-icon {
        width: 50px;
        height: 50px;
    }

    .resource-card-icon i {
        font-size: 23px;
    }

    .resources-cta {
        padding: 80px 20px;
    }

    .resources-cta-content h2 {
        font-size: 36px;
    }

    .resources-cta-content p {
        font-size: 17px;
    }
}

/* Mobile Landscape and Large Phones: 600px - 767px */
@media (max-width: 767px) {
    .resources-hero {
        padding: 70px 20px;
        background-attachment: scroll;
    }

    .resources-hero-content h1 {
        font-size: 34px;
        margin-bottom: 16px;
    }

    .resources-hero-content p {
        font-size: 16px;
        line-height: 1.6;
    }

    .resources-nav {
        padding: 18px 15px;
        position: relative;
    }

    .nav-pills {
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .nav-pill {
        padding: 10px 20px;
        font-size: 13px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .nav-pill i {
        font-size: 15px;
    }

    .resources-content {
        padding: 60px 18px 80px;
    }

    .resource-section {
        margin-bottom: 60px;
        scroll-margin-top: 100px;
    }

    /* UPDATED MOBILE SECTION HEADER - Icon and heading side-by-side */
    .section-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 28px;
        padding-bottom: 16px;
    }

    .section-icon {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .section-icon img {
        width: 100%;
        height: 100%;
    }

    .section-icon i {
        font-size: 26px;
    }

    .section-header h2 {
        font-size: 22px;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .section-header p {
        font-size: 14px;
        line-height: 1.5;
        color: #64748b;
    }

    .resource-grid,
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 18px;
    }

    .resource-card {
        min-height: 82px;
        padding: 18px 20px;
        padding-right: 50px;
        gap: 14px;
    }

    .resource-card-icon {
        width: 46px;
        height: 46px;
    }

    .resource-card-icon i {
        font-size: 21px;
    }

    .resource-card h3 {
        font-size: 14px;
        line-height: 1.35;
    }

    .resource-arrow {
        width: 30px;
        height: 30px;
        right: 16px;
    }

    .resource-arrow i {
        font-size: 12px;
    }

    .resources-cta {
        padding: 70px 18px;
    }

    .resources-cta-content h2 {
        font-size: 30px;
    }

    .resources-cta-content p {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .resources-cta-buttons {
        gap: 14px;
    }

    .resources-cta-btn {
        padding: 16px 36px;
        font-size: 15px;
    }
}

/* Standard Mobile: 480px - 599px */
@media (max-width: 599px) {
    .resources-hero {
        padding: 60px 16px;
    }

    .resources-hero-content h1 {
        font-size: 30px;
        letter-spacing: -0.5px;
    }

    .resources-hero-content p {
        font-size: 15px;
    }

    .resources-content {
        padding: 50px 16px 70px;
    }

    .resource-section {
        margin-bottom: 50px;
    }

    /* MOBILE SECTION HEADER - Compact layout */
    .section-header {
        gap: 12px;
        margin-bottom: 24px;
        padding-bottom: 14px;
    }

    .section-icon {
        width: 44px;
        height: 44px;
    }

    .section-icon i {
        font-size: 24px;
    }

    .section-header h2 {
        font-size: 20px;
        margin-bottom: 3px;
    }

    .section-header p {
        font-size: 13px;
    }

    .resource-grid,
    .cities-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .resource-card {
        min-height: 78px;
        padding: 16px 18px;
        padding-right: 48px;
        gap: 12px;
    }

    .resource-card-icon {
        width: 44px;
        height: 44px;
        border-radius: 9px;
    }

    .resource-card-icon i {
        font-size: 20px;
    }

    .resource-card h3 {
        font-size: 13.5px;
    }

    .resource-arrow {
        width: 28px;
        height: 28px;
        right: 14px;
    }

    .resource-arrow i {
        font-size: 11px;
    }

    .resources-cta {
        padding: 60px 16px;
    }

    .resources-cta-content h2 {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .resources-cta-content p {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .resources-cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .resources-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 28px;
    }
}

/* Small Mobile: 375px - 479px */
@media (max-width: 479px) {
    .resources-hero {
        padding: 50px 14px;
    }

    .resources-hero-content h1 {
        font-size: 26px;
    }

    .resources-hero-content p {
        font-size: 14px;
    }

    .resources-nav {
        display: none;
    }

    .resources-content {
        padding: 40px 14px 60px;
    }

    .resource-section {
        margin-bottom: 44px;
    }

    /* SMALL MOBILE SECTION HEADER - Very compact */
    .section-header {
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .section-icon {
        width: 40px;
        height: 40px;
    }

    .section-icon i {
        font-size: 22px;
    }

    .section-header h2 {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .section-header p {
        font-size: 12px;
        line-height: 1.4;
    }

    .resource-card {
        min-height: 74px;
        padding: 14px 16px;
        padding-right: 46px;
        gap: 10px;
    }

    .resource-card-icon {
        width: 42px;
        height: 42px;
        border-radius: 8px;
    }

    .resource-card-icon i {
        font-size: 19px;
    }

    .resource-card h3 {
        font-size: 13px;
    }

    .resource-arrow {
        width: 26px;
        height: 26px;
        right: 12px;
    }

    .resource-arrow i {
        font-size: 10px;
    }

    .resources-cta-content h2 {
        font-size: 24px;
    }

    .resources-cta-content p {
        font-size: 14px;
    }

    .resources-cta-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
}

/* Extra Small Mobile: 320px - 374px */
@media (max-width: 374px) {
    .resources-hero-content h1 {
        font-size: 24px;
    }

    .resources-hero-content p {
        font-size: 13px;
    }

    /* EXTRA SMALL MOBILE SECTION HEADER */
    .section-header {
        gap: 8px;
        margin-bottom: 18px;
    }

    .section-icon {
        width: 38px;
        height: 38px;
    }

    .section-icon i {
        font-size: 20px;
    }

    .section-header h2 {
        font-size: 17px;
    }

    .section-header p {
        font-size: 11.5px;
    }

    .resource-card {
        min-height: 70px;
        padding: 12px 14px;
        padding-right: 44px;
    }

    .resource-card-icon {
        width: 40px;
        height: 40px;
    }

    .resource-card-icon i {
        font-size: 18px;
    }

    .resource-card h3 {
        font-size: 12.5px;
    }

    .resources-cta-content h2 {
        font-size: 22px;
    }

    .resources-cta-content p {
        font-size: 13px;
    }
}

/* ============================================
   LOADING ANIMATION
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resource-card {
    animation: fadeInUp 0.5s ease-out backwards;
}

.resource-card:nth-child(1) {
    animation-delay: 0.05s;
}

.resource-card:nth-child(2) {
    animation-delay: 0.1s;
}

.resource-card:nth-child(3) {
    animation-delay: 0.15s;
}

.resource-card:nth-child(4) {
    animation-delay: 0.2s;
}

.resource-card:nth-child(5) {
    animation-delay: 0.25s;
}

.resource-card:nth-child(6) {
    animation-delay: 0.3s;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}