/* ============================================
   LANDING PAGE REDESIGN - SEO & ENGAGEMENT OPTIMIZED
   Resource Hub Style Landing Page
   ============================================ */

/* ============================================
   HERO SECTION - High Impact with Animated Background
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, #5BBCE8 0%, #33a8d8 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Animated 3D Wave Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.05) 70%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0.03) 70%, transparent 70%);
    background-size: 60px 60px;
    animation: waveMove 20s linear infinite;
    opacity: 0.4;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: rotateBackground 60s linear infinite;
    opacity: 0.3;
}

@keyframes waveMove {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 60px 60px, -60px 60px;
    }
}

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    margin-bottom: 15px;
    opacity: 0.95;
    font-weight: 300;
}

.hero-description {
    font-size: clamp(16px, 2vw, 18px);
    margin-bottom: 35px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-block;
    background: white;
    color: #5BBCE8;
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   TESTIMONIALS SECTION - Social Proof
   ============================================ */

.testimonials-section {
    background: #f8f9fa;
    padding: 60px 20px;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e9ecef;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 80px;
    color: #5BBCE8;
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5BBCE8 0%, #33a8d8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 700;
    color: #2d3748;
    font-size: 16px;
    margin-bottom: 3px;
}

.author-role {
    font-size: 14px;
    color: #718096;
}

/* ============================================
   CATEGORY HUB SECTIONS - Resource Panels
   ============================================ */

.categories-hub {
    padding: 80px 20px;
    background: white;
}

.categories-container {
    max-width: 1400px;
    margin: 0 auto;
}

.hub-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.hub-intro h2 {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 20px;
}

.hub-intro p {
    font-size: 18px;
    color: #718096;
    line-height: 1.6;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.category-panel {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #5BBCE8 0%, #33a8d8 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.category-panel:hover::before {
    transform: scaleX(1);
}

.category-panel:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(91, 188, 232, 0.15);
    border-color: #5BBCE8;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #5BBCE8 0%, #33a8d8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(91, 188, 232, 0.3);
    color: white;
    font-weight: bold;
}

.category-title-group h3 {
    font-size: 24px;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 5px;
}

.category-count {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.category-description {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 25px;
}

.category-posts {
    margin-bottom: 20px;
}

.category-post-item {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

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

.category-post-item:hover {
    padding-left: 10px;
    background: #f8f9fa;
    margin-left: -10px;
    margin-right: -10px;
    padding-right: 10px;
    border-radius: 8px;
}

.category-post-link {
    text-decoration: none;
    color: #2d3748;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-post-link::before {
    content: '→';
    color: #5BBCE8;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.category-post-link:hover::before {
    transform: translateX(5px);
}

.category-post-link:hover {
    color: #5BBCE8;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5BBCE8;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    gap: 12px;
    color: #33a8d8;
}

.view-all-link::after {
    content: '→';
    font-size: 18px;
}

/* ============================================
   CONTENT SECTIONS - Trending, Popular, etc.
   ============================================ */

.content-sections {
    background: #f8f9fa;
    padding: 80px 20px;
}

.content-sections-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
}

.tab-button {
    padding: 12px 30px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.tab-button:hover,
.tab-button.active {
    background: linear-gradient(135deg, #5BBCE8 0%, #33a8d8 100%);
    color: white;
    border-color: #5BBCE8;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(91, 188, 232, 0.3);
}

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

.featured-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    border: 1px solid #e9ecef;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.featured-content {
    padding: 25px;
}

.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #5BBCE8 0%, #33a8d8 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.featured-title {
    font-size: 20px;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 12px;
    line-height: 1.4;
}

.featured-description {
    font-size: 15px;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 15px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #a0aec0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.insights-panel {
    background: white;
    padding: 60px 20px;
    border-top: 1px solid #e9ecef;
}

.insights-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.insight-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 30px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.insight-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #5BBCE8;
}

.insight-title {
    font-size: 18px;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 20px;
}

.insight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insight-list li {
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
    color: #4a5568;
}

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

/* ============================================
   NEWSLETTER SIGNUP
   ============================================ */

.newsletter-section {
    background: linear-gradient(135deg, #5BBCE8 0%, #33a8d8 100%);
    padding: 80px 20px;
    color: white;
    text-align: center;
}

.newsletter-container {
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-container h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 20px;
}

.newsletter-container p {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-input {
    flex: 1;
    min-width: 250px;
    padding: 18px 25px;
    border-radius: 50px;
    border: none;
    font-size: 16px;
    outline: none;
}

.newsletter-button {
    padding: 18px 40px;
    background: white;
    color: #5BBCE8;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   QUICK ACCESS BUTTONS
   ============================================ */

.quick-access {
    background: white;
    padding: 60px 20px;
}

.quick-access-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.quick-access h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 40px;
}

.quick-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-button {
    padding: 18px 35px;
    background: linear-gradient(135deg, #5BBCE8 0%, #33a8d8 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(91, 188, 232, 0.3);
    display: inline-block;
}

.quick-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(91, 188, 232, 0.4);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
    }

    .hero-stats {
        gap: 25px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-input {
        min-width: 100%;
    }

    .quick-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .section-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .category-panel {
        padding: 25px 20px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .category-header {
        gap: 15px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger animation for cards */
.featured-card,
.category-panel,
.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.featured-card:nth-child(1),
.category-panel:nth-child(1),
.testimonial-card:nth-child(1) {
    animation-delay: 0.1s;
}

.featured-card:nth-child(2),
.category-panel:nth-child(2),
.testimonial-card:nth-child(2) {
    animation-delay: 0.2s;
}

.featured-card:nth-child(3),
.category-panel:nth-child(3),
.testimonial-card:nth-child(3) {
    animation-delay: 0.3s;
}

.featured-card:nth-child(4),
.category-panel:nth-child(4),
.testimonial-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #5BBCE8;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus {
    outline: 3px solid #5BBCE8;
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {

    .hero-section,
    .testimonials-section,
    .tools-resources-band,
    .newsletter-section,
    .quick-access {
        display: none;
    }
}