/* Resources Page Styles */

/* Logo Link */
.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

/* Resources Hero Section */
.resources-hero {
    padding: 25px 0 20px; /* Much more compact */
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 50%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 102, 255, 0.05);
}

.resources-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(0, 212, 106, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.resources-hero .container {
    position: relative;
    z-index: 1;
}

.resources-title {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.resources-subtitle {
    font-size: 16px;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.5;
}

/* Animated Underline Header */
.hero-content-wrapper.animated-underline-header {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content-wrapper.animated-underline-header .resources-title {
    margin-bottom: 16px;
}

.hero-content-wrapper.animated-underline-header .animated-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #0F91F2, #3FEAC2);
    margin: 0 0 20px 0;
    border-radius: 2px;
    animation: lineAnimation 3s ease-in-out infinite;
    display: block;
    position: relative;
}

@keyframes lineAnimation {
    0% { 
        width: 100px;
        opacity: 0.8;
    }
    50% { 
        width: 200px;
        opacity: 1;
    }
    100% { 
        width: 100px;
        opacity: 0.8;
    }
}

/* News Section */
.news-section {
    padding: 40px 0 80px;
    background: #ffffff;
    position: relative;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.news-section .section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
    position: relative;
}

.news-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #0F91F2;
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card::before {
    display: none;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-image {
    width: 100%;
    height: 154px; /* Reduced by 30% from 220px */
    overflow: hidden;
    background: #f3f4f6;
    position: relative;
}

.news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .news-image::after {
    opacity: 1;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
    flex: 0;
}

.news-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.news-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0F91F2, #3FEAC2);
    transition: width 0.3s ease;
}

.news-title a:hover {
    color: #0F91F2;
}

.news-title a:hover::after {
    width: 100%;
}

.news-excerpt {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.news-date {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 400;
}

.news-link {
    color: #0F91F2;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-link:hover {
    gap: 8px;
    color: #0052cc;
}

/* Badge Styles */
.news-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Side Strip Badge Styles */
.news-card-side-strip {
    overflow: visible;
}

.news-card-side-strip .side-strip {
    position: absolute;
    left: 0;
    top: 20px;
    padding: 8px 20px 8px 25px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    z-index: 1;
    border-radius: 0 25px 25px 0;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.news-card-side-strip:hover .side-strip {
    padding-right: 25px;
    box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.2);
}

/* Different colors for each badge - matching website theme */
.side-strip-featured {
    background: linear-gradient(135deg, #0F91F2 0%, #0052cc 100%);
}

.side-strip-new {
    background: linear-gradient(135deg, #3FEAC2 0%, #00b359 100%);
}

.side-strip-trending {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.side-strip-must-read {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.side-strip-guide {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a3aa 100%);
}

.side-strip-hot {
    background: linear-gradient(135deg, #ff9a00 0%, #ff6348 100%);
}

.badge-featured {
    background: #ff4757;
    color: white;
}

.badge-new {
    background: #00d68f;
    color: white;
}

.badge-trending {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.badge-category {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.badge-corner {
    position: absolute;
    top: 0;
    right: 0;
    background: #0F91F2;
    color: white;
    padding: 8px 20px;
    border-radius: 0 12px 0 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-ribbon {
    position: absolute;
    top: 20px;
    left: -30px;
    background: #ff4757;
    color: white;
    padding: 5px 40px;
    transform: rotate(-45deg);
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-hot {
    background: #ff6348;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 99, 72, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(255, 99, 72, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 99, 72, 0.3);
    }
}

.see-all-container {
    text-align: center;
}

.see-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #0F91F2;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.see-all-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.see-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.4);
}

.see-all-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Resources Download Section - Interactive Hover Cards Design */
.resources-download-section {
    padding: 100px 0;
    background: #f5f7fa; /* Light grey background */
    position: relative;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(0, 212, 106, 0.03) 0%, transparent 40%),
        linear-gradient(180deg, #f5f7fa 0%, #f8f9fb 100%);
}

/* Interactive Card Wrapper - New Design */
.interactive-card-wrapper {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Image Side - Left */
.resource-image-side {
    position: relative;
    width: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: transparent; /* Remove background - just show the image */
}

.resource-image-side img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain; /* Changed from cover to contain to show full image */
    border-radius: 24px; /* Rounded edges matching the card */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    display: block;
}

.image-overlay {
    display: none; /* Remove overlay since no hover effect */
}

/* Content Side - Right */
.resource-content-side {
    flex: 1;
    padding: 32px 48px; /* Reduced vertical padding by 30% */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.resource-content-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #0F91F2, #3FEAC2);
}

/* Content Header */
.content-header {
    margin-bottom: 16px; /* Reduced spacing */
}

.featured-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #0F91F2 0%, #0052cc 100%);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Gotham Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Typography */
.resource-title {
    font-size: 26px; /* Slightly reduced */
    font-weight: 700;
    font-family: 'Gotham Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #0f172a;
    margin-bottom: 8px; /* Reduced spacing */
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.resource-partners {
    font-size: 14px; /* Slightly reduced */
    font-family: 'Gotham Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #64748b;
    margin-bottom: 16px; /* Reduced spacing */
    font-weight: 400;
}

/* Expandable Content - Now always visible */
.expandable-content {
    margin-bottom: 24px;
    margin-top: 8px;
}

.expandable-content p {
    font-size: 14px;
    font-family: 'Gotham Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 12px;
    font-weight: 400;
}

.expandable-content p:last-child {
    margin-bottom: 0;
}

/* Download Actions */
.download-actions {
    display: flex;
    gap: 16px;
    margin-top: auto;
}

.download-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Gotham Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.download-button.primary {
    background: #0F91F2;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.15);
}

.download-button.secondary {
    background: rgba(0, 102, 255, 0.1);
    color: #0F91F2;
    border: 2px solid rgba(0, 102, 255, 0.2);
}

.download-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.download-button:hover::after {
    left: 100%;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.25);
}

.download-button svg {
    transition: transform 0.3s ease;
}

.download-button:hover svg {
    transform: translateY(2px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .interactive-card-wrapper {
        flex-direction: column;
    }
    
    .resource-image-side {
        width: 100%;
        padding: 30px;
    }
    
    .resource-content-side {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .resource-title {
        font-size: 22px;
    }
    
    .expandable-content p {
        font-size: 13px;
    }
    
    .download-actions {
        flex-direction: column;
    }
    
    .download-button {
        width: 100%;
        justify-content: center;
    }
    
    .resource-content-side {
        padding: 24px;
    }
    
    .resource-image-side {
        padding: 20px;
    }
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.newsletter-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 106, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.newsletter-title {
    font-size: 42px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.newsletter-subtitle {
    font-size: 20px;
    color: #64748b;
    margin-bottom: 48px;
    font-weight: 300;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-input {
    flex: 1;
    padding: 16px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.newsletter-input:focus {
    outline: none;
    border-color: #0F91F2;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.08);
}

.newsletter-submit {
    padding: 16px 32px;
    background: #0F91F2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
    white-space: nowrap;
}

.newsletter-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.4);
}

.newsletter-submit:active {
    transform: translateY(-1px);
}

.newsletter-consent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.newsletter-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.newsletter-consent label {
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
}

/* Navigation Active State */
.nav-links a.active {
    color: #0F91F2;
    font-weight: 600;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0F91F2, #3FEAC2);
    border-radius: 2px;
}

/* Add hover effect to navigation */
.nav-links a {
    position: relative;
    transition: color 0.3s ease;
}

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

/* Professional Typography */
body {
    color: #374151;
}

/* Subtle animations */
.news-card {
    will-change: transform;
}

/* Professional button styles */
.btn {
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Refined shadows */
.news-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.news-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* Container for consistent spacing */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Additional Enhancements */
.news-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Enhancement */
#header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .resources-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .resources-visual {
        order: -1;
    }
}

/* Responsive adjustments for 4-column grid */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .resources-title {
        font-size: 40px;
    }
    
    .news-section .section-title,
    .resources-download-section .section-title {
        font-size: 32px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .resources-hero {
        padding: 120px 0 60px;
    }
    
    .resources-title {
        font-size: 32px;
    }
    
    .resources-subtitle {
        font-size: 16px;
    }
    
    .news-section,
    .resources-download-section {
        padding: 60px 0;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 18px;
    }
    
    .resource-title {
        font-size: 24px;
    }
}