/* Resources Page Styles */

/* Hero Banner */
.resources-hero {
    height: 350px;
    background-image: url('../images/18.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-top: 96px;
    /* Match subpages.css default */
}

.resources-hero::before {
    display: none;
}

.resources-hero-content {
    position: relative;
    z-index: 2;
}

.resources-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.resources-hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Category Navigation - Restyled to match About Page Tabs */
.category-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 0 auto 40px;
    /* Removed top margin to attach to banner if needed, keeping bottom margin */
    flex-wrap: wrap;
    position: sticky;
    top: 131px;
    /* Match Header Height */
    z-index: 99;
    background: #fff;
    /* Solid white */
    padding: 0;
    /* Remove padding to let tabs dictate height */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #eee;
    backdrop-filter: none;
    /* Remove blur */
}

.category-btn {
    display: block;
    padding: 20px 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #888;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
    background: none;
    border: none;
    border-radius: 0;
    border-bottom: 3px solid transparent;
}

.category-btn:hover {
    color: var(--primary);
    background: none;
    box-shadow: none;
    border-color: transparent;
    /* Hover doesn't trigger active border usually, or maybe light highlight? subpages says color change */
}

.category-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: none;
    box-shadow: none;
}

/* Section Styling */
.resource-section {
    padding: 60px 0;
    border-bottom: 1px solid #f5f5f5;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* 1. Newsletter Grid */
.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.newsletter-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    text-align: center;
}

.newsletter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.newsletter-thumb {
    width: 100%;
    height: 190px;
    /* Reduced height as per request */
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.newsletter-card:hover .newsletter-thumb img {
    transform: scale(1.05);
}

.promo-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.promo-item-simple {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}
.promo-item-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.promo-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}
.simple-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s;
}
.simple-btn:hover {
    background: var(--secondary);
}

.newsletter-info {
    padding: 20px;
}

.newsletter-year {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.newsletter-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #555;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #555;
    color: white;
}

/* 2. Guide Cards */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.guide-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.guide-card:hover::before {
    transform: scaleX(1);
}

.guide-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: rgba(255, 114, 66, 0.1);
    border-radius: 50%;
}

.guide-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.guide-desc {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.guide-action {
    display: inline-block;
    padding: 12px 30px;
    background: var(--dark);
    /* Assuming global var */
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.guide-action:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 114, 66, 0.3);
}

/* 3. Video Gallery */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    justify-content: center;
}

.video-card {
    border-radius: 15px;
    overflow: hidden;
    background: black;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 20px;
    background: white;
}

.video-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.video-desc {
    font-size: 0.9rem;
    color: #777;
}

/* 4. Promo Materials */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
}

.promo-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.promo-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.promo-icon {
    font-size: 2rem;
    margin-right: 15px;
    color: #4CAF50;
    /* Excel/File green */
}

.promo-icon.pdf {
    color: #F44336;
}

.promo-icon.img {
    color: #2196F3;
}

.promo-icon.zip {
    color: #FF9800;
}

.promo-details {
    flex: 1;
}

.promo-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.promo-meta {
    font-size: 0.8rem;
    color: #999;
}

.promo-download {
    color: #ccc;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.promo-item:hover .promo-download {
    color: var(--primary);
}

/* Responsive */
/* @media (max-width: 768px) {
    .resources-hero-title {
        font-size: 2rem;
    }

    .category-nav {
        top: 131px;
        overflow-x: auto;
        justify-content: flex-start;
        padding-left: 20px;
        white-space: nowrap;
        gap: 10px;
    }

    .category-btn {
        font-size: 0.9rem;
        padding: 15px 5px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
} */

/* View More Button */
.view-more-container {
    text-align: center;
    margin-top: 40px;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.view-more-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 114, 66, 0.2);
}