/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-blue: #0474C4;
    --primary-periwinkle: #5379AE;
    --primary-slate: #2C444C;
    --primary-lavender: #A8C4EC;
    --primary-navy: #06457F;
    --primary-dark: #262B40;
    --accent: #0474C4;
    --accent-dark: #06457F;
    
    /* Grays */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Spacing */
    --container-max: 1280px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, rgba(168, 196, 236, 0.2) 0%, rgba(255, 255, 255, 1) 50%, rgba(4, 116, 196, 0.1) 100%);
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-blue), var(--primary-periwinkle), var(--primary-lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s;
}

.logo:hover {
    background: linear-gradient(to right, var(--primary-blue), var(--primary-slate), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--gray-900);
    border-bottom-color: var(--gray-400);
}

.nav-link.active {
    color: var(--gray-900);
    border-bottom-color: var(--gray-700);
    font-weight: 600;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(4, 116, 196, 0.1) 0%, rgba(83, 121, 174, 0.1) 50%, rgba(168, 196, 236, 0.1) 100%);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-blue), var(--primary-periwinkle), var(--primary-lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 48rem;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-blue), var(--primary-navy));
    color: white;
    box-shadow: 0 10px 25px rgba(4, 116, 196, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--primary-navy), var(--primary-blue));
}

.btn-secondary {
    border: 2px solid var(--primary-periwinkle);
    color: var(--primary-navy);
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(83, 121, 174, 0.2);
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--primary-blue), var(--primary-slate));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(4, 116, 196, 0.1);
}

.section-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgba(4, 116, 196, 0.05);
}

.section-link:hover {
    color: var(--primary-periwinkle);
    background: rgba(4, 116, 196, 0.1);
    transform: translateX(4px);
}

/* Cards */
.card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    border-left: 4px solid;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    border-width: 2px;
    border-color: var(--gray-500);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.feature-blue {
    border-left-color: var(--primary-blue);
}

.feature-navy {
    border-left-color: var(--primary-navy);
}

.feature-slate {
    border-left-color: var(--primary-slate);
}

.feature-periwinkle {
    border-left-color: var(--primary-periwinkle);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gray-700);
    line-height: 1.6;
}

.features-intro {
    max-width: 48rem;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--gray-700);
    line-height: 1.75;
}

/* Videos Grid - Standard grid for video listing pages */
.videos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1280px) {
    .videos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Latest Videos Container - override grid styles */
#latestVideos {
    display: block !important;
    grid-template-columns: none !important;
    width: 100%;
}

.video-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    min-height: 350px;
    width: 100%;
}

@media (min-width: 1024px) {
    .video-card {
        min-height: 380px;
    }
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-blue), var(--primary-periwinkle), var(--primary-lavender));
    opacity: 0;
    transition: opacity 0.4s;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.1);
    border-color: rgba(4, 116, 196, 0.2);
}

.video-card:hover::before {
    opacity: 1;
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    min-height: 180px;
}

@media (min-width: 1024px) {
    .video-thumbnail-container {
        min-height: 200px;
    }
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover .video-thumbnail {
    transform: scale(1.08);
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}

.video-card:hover .video-play-overlay {
    opacity: 1;
    background: rgba(239, 68, 68, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-overlay svg {
    width: 24px;
    height: 24px;
    fill: white;
    margin-left: 3px;
}

.video-content {
    padding: 1.5rem;
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .video-content {
        padding: 1.75rem;
    }
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    transition: color 0.3s;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    min-height: 3rem;
}

@media (min-width: 1024px) {
    .video-title {
        font-size: 1.0625rem;
        min-height: 3.1875rem;
    }
}

.video-card:hover .video-title {
    color: var(--primary-blue);
}

.video-meta {
    font-size: 0.875rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.video-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.video-meta-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* Latest Video Wrapper */
.latest-video-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

/* Latest Video Large Card */
.latest-video-large {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
}

/* Recent Videos Grid - separate from videos-grid */
.recent-videos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 640px) {
    .recent-videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .latest-video-wrapper {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .latest-video-large {
        width: 100%;
    }
    
    .recent-videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .recent-videos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1600px) {
    .recent-videos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.latest-video-large .video-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    background: #000;
}

.latest-video-large .video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.latest-video-large .video-content {
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .latest-video-large .video-content {
        padding: 2.5rem;
    }
}

.latest-video-large .video-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    min-height: auto;
    max-height: none;
    -webkit-line-clamp: 3;
}

.watch-youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.625rem 1.25rem;
    background: #FF0000;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.2);
}

.watch-youtube-link:hover {
    background: #CC0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

.watch-youtube-link svg {
    width: 18px;
    height: 18px;
}

.latest-video-large .video-meta {
    font-size: 0.9375rem;
}

/* Recent Videos Grid (Homepage) */
.recent-videos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .recent-videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .recent-videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1400px) {
    .recent-videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Section Header Improvements */
.section-header {
    margin-bottom: 2.5rem;
}

.latest-videos-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%);
    padding: 4rem 0;
    margin: 2rem 0;
    border-radius: 1rem;
}

@media (min-width: 768px) {
    .latest-videos-section {
        padding: 5rem 0;
    }
}

/* Skeleton Loaders */
.video-skeleton {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skeleton-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-content {
    padding: 1rem;
}

.skeleton-line {
    height: 1rem;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.skeleton-line.short {
    width: 60%;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat:first-child .stat-number {
    color: var(--primary-blue);
}

.stat:nth-child(2) .stat-number {
    color: var(--primary-navy);
}

.stat:nth-child(3) .stat-number {
    color: var(--primary-periwinkle);
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Journey Section */
.journey-section {
    background: linear-gradient(135deg, rgba(4, 116, 196, 0.05) 0%, rgba(83, 121, 174, 0.05) 50%, rgba(168, 196, 236, 0.05) 100%);
}

.journey-content p {
    margin-bottom: 1.5rem;
    color: var(--gray-700);
    line-height: 1.75;
    font-size: 1.125rem;
}

/* Disclaimer */
.disclaimer-section {
    background: linear-gradient(to right, rgba(168, 196, 236, 0.1), rgba(83, 121, 174, 0.1));
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.disclaimer-box {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.disclaimer-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #dc2626;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.disclaimer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #991b1b;
    margin-bottom: 0.5rem;
}

.disclaimer-box p {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.disclaimer-note {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--gray-50) 0%, #e0e7ff 100%);
    border-top: 1px solid var(--gray-200);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-blue), var(--primary-periwinkle), var(--primary-lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 0.875rem;
    color: var(--gray-800);
    font-weight: 500;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--gray-900);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--gray-800);
    font-weight: 500;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.hidden {
    display: none;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--gray-600);
}

.error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Responsive Video Embed */
.video-embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    background: #000;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

