:root {
    --primary-color: #2E6456; /* Muted teal green */
    --secondary-color: #1F3F37; /* Dark teal */
    --accent-color: #3B7A6A; /* Teal */
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-color: #334155;
    --card-bg: #ffffff;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9fafb;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: var(--light-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
    border-radius: 12px;
    background-color: white;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.subscribers-note {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.btn-youtube {
    background-color: #ff0000;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-youtube:hover {
    background-color: #cc0000;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(204, 0, 0, 0.2);
}

.youtube-icon {
    font-size: 1.2rem;
}

.btn-youtube-large {
    background-color: #ff0000;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem auto;
    max-width: 300px;
    transition: all 0.3s;
}

.btn-youtube-large:hover {
    background-color: #cc0000;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(204, 0, 0, 0.2);
}

.btn-youtube-small {
    background-color: #ff0000;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 0.5rem;
}

.btn-youtube-small:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
}

.youtube-link {
    color: #ff0000;
    font-weight: 700;
}

.youtube-link:hover {
    color: #cc0000;
}

.benefits-list {
    max-width: 800px;
    margin: 1.5rem auto;
    text-align: left;
    padding-left: 2rem;
}

.benefits-list li {
    margin-bottom: 0.75rem;
}

.subscribe-container {
    background-color: #f8f9fa;
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-container h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.action-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.subscribe-reminder {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px dashed #dee2e6;
}

.subscribe-reminder p {
    margin-bottom: 0.5rem;
}

/* Ad Container */
.ad-container {
    padding: 20px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.ad-container ins {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* Recommendations Section */
.recommendations, .free-models {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.mode-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #10b981;
}

input:focus + .slider {
    box-shadow: 0 0 1px #10b981;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.recommendations h2, .free-models h2 {
    text-align: center;
    margin-bottom: 0;
    font-size: 2rem;
    color: var(--dark-color);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-color);
}

.free-models {
    background-color: #f0f9ff;
}

.free-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #10b981;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 0 0 0.5rem 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.rec-card {
    background-color: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.rec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.rec-card:hover .click-hint {
    opacity: 1;
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 0.2);
}

.rec-card.featured {
    border: 2px solid var(--accent-color);
}

.rec-card.featured::before {
    content: "Top Pick";
    position: absolute;
    top: 1rem;
    right: -2rem;
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 2rem;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 600;
}

.model-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.model-logo img {
    height: 60px;
    object-fit: contain;
}

.rec-card h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.model-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.description {
    font-size: 0.9rem;
    color: var(--text-color);
}

.click-hint {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.65rem;
    color: var(--primary-color);
    opacity: 0.6;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.1);
}

.click-hint::after {
    content: 'learn more';
}

/* About Section */
.about {
    background-color: var(--light-color);
    padding: 4rem 0;
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--dark-color);
}

.about p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.about-item {
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.3s;
}

.about-item:hover {
    transform: translateY(-5px);
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.join-text {
    margin-top: 2rem;
    font-weight: 500;
}

.value-prop {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    text-align: center;
}

.contact h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--dark-color);
}

.contact p {
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1.5rem;
}

.social-link {
    margin: 0;
    color: var(--dark-color);
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.2rem;
}

.social-link.youtube-link {
    color: #ff0000;
}

.social-link.youtube-link:hover {
    color: #cc0000;
}

/* Footer */
footer {
    background-color: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
}

/* Shared footer legal links */
.legal-links {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    font-size: 0.9rem;
}
.legal-links a {
    color: var(--primary-color);
    text-decoration: none;
    opacity: 0.95;
    font-weight: 600;
}
.legal-links span { color: rgba(255,255,255,0.7); }
.legal-links a:hover { text-decoration: underline; opacity: 1; }

/* Fixed PayPal Donate button (shared across pages) */
.paypal-donate-fixed {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 3000;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 8px 12px; /* smaller button */
    border-radius: 10px; /* slightly tighter */
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    color: #fff;
	/* Dark anodized base + subtle top highlight for metallic look */
	background: linear-gradient(180deg, #1a1b1e 0%, #0a0a0b 100%),
		radial-gradient(120% 90% at 50% -15%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%);
	background-blend-mode: screen, normal;
    box-shadow:
        0 12px 24px rgba(0,0,0,0.35),
        0 2px 6px rgba(0,0,0,0.25),
		inset 0 1px 0 rgba(255,255,255,0.06),
		inset 0 -1px 0 rgba(0,0,0,0.5);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
	overflow: hidden; /* clip sheen sweep */
	border: 1px solid rgba(255,255,255,0.06);
}

.paypal-donate-fixed:hover { transform: translateY(-1px); background: linear-gradient(180deg, #1c1d20 0%, #0d0d0f 100%), radial-gradient(120% 90% at 50% -15%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 60%); background-blend-mode: screen, normal; }

.paypal-donate-fixed:focus {
    outline: 3px solid #3B7A6A;
    outline-offset: 2px;
}

.paypal-donate-fixed .pp-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; /* smaller mark */
    height: 32px;
    border-radius: 6px;
    background: transparent;
    margin-left: -12px; /* align left padding vs text side */
}

.paypal-donate-fixed .pp-logo .pp-img { width: 100%; height: 100%; display: block; }

.paypal-donate-fixed .pp-text {
    font-size: 0.95rem;
    letter-spacing: 0.25px;
    margin-top: 1px; /* optical alignment */

}

/* Scale the inline SVG mark */
.paypal-donate-fixed .pp-logo svg {
    width: 72px;
    height: 44px;
    display: block;
}

/* Metallic sheen sweep */
.paypal-donate-fixed::after {
	content: "";
	position: absolute;
	top: -220%;
	left: -160%;
	width: 75%;
	height: 520%;
	background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.10) 32%, rgba(255,255,255,0.28) 48%, rgba(255,255,255,0.10) 64%, rgba(255,255,255,0) 100%);
	transform: rotate(14deg);
	animation: paypalSheen 4.6s cubic-bezier(0.22,1,0.36,1) infinite;
	pointer-events: none;
}

@keyframes paypalSheen {
	0% { left: -160%; }
	55% { left: 125%; }
	100% { left: 125%; }
}

@media (max-width: 768px) {
    .paypal-donate-fixed {
        top: 10px;
        right: 10px;
        padding: 7px 10px;
        border-radius: 9px;
        gap: 4px;
    }
    .paypal-donate-fixed .pp-logo {
        width: 44px;
        height: 28px;
    }
    .paypal-donate-fixed .pp-logo svg { width: 44px; height: 28px; }
    .paypal-donate-fixed .pp-text { font-size: 0.9rem; }
}

@media (max-width: 420px) {
    .paypal-donate-fixed {
        padding: 7px 10px;
        gap: 4px;
    }
    .paypal-donate-fixed .pp-text {
        font-size: 0.85rem;
        font-weight: 600;
    }
}

@media (max-width: 360px) {
    .paypal-donate-fixed { padding: 6px 8px; gap: 4px; }
    .paypal-donate-fixed .pp-logo { width: 40px; height: 24px; }
    .paypal-donate-fixed .pp-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .paypal-donate-fixed, .paypal-donate-fixed:hover { transition: none; transform: none; }
}

.support-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 4000;
}
.support-modal.show { display: flex; }

.support-card {
    width: min(420px, 92vw);
    background: #0f1115;
    color: #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.3);
    overflow: hidden;
}
.support-header {
    display: flex; align-items: center; justify-content: center; position: relative;
    padding: 14px 16px; background: #111318; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.support-title { margin: 0; font-weight: 900; letter-spacing: .2px; text-align: center; font-size: 1.75rem; }
.support-title .emoji { font-size: 1.4em; line-height: 1; }
.support-close { background: none; border: none; color: #9ca3af; font-size: 1.6rem; cursor: pointer; position: absolute; right: 12px; top: 8px; }
.support-close:hover { color: #fff; }
.support-body { padding: 16px; }
.amount-row { display: flex; align-items: center; gap: 6px; margin: 8px 0 14px; }
.amount-row .currency { font-weight: 700; color: #9ca3af; }
.amount-row input { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); background: #0b0d12; color: #e5e7eb; font-weight: 700; }
.amount-row input:focus { outline: 2px solid #3B7A6A; }
.support-note { color: #9ca3af; }

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    text-align: center;
}

.footer-img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links h4, .footer-subscribe h4 {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    color: white;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-subscribe p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.credit {
    margin-top: 0.5rem;
    font-style: italic;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Page Layout with Sidebars */
.page-wrapper {
    display: flex;
    justify-content: space-between;
    max-width: 1800px;
    margin: 0 auto;
}

.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.sidebar-ad {
    width: 160px;
    display: none; /* Hidden by default on smaller screens */
}

.sticky-ad {
    position: sticky;
    top: 100px;
    padding: 10px 0;
}

.sidebar-adunit {
    min-height: 600px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
}

.sidebar-left {
    margin-right: 15px;
}

.sidebar-right {
    margin-left: 15px;
}

/* Show sidebar ads on larger screens */
@media (min-width: 1400px) {
    .sidebar-ad {
        display: block;
    }
    
    .page-wrapper {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        max-width: 1800px;
        margin: 0 auto;
        padding: 0 20px;
    }
}

/* Enhanced sidebar styling */
.sidebar-ad {
    position: relative;
    z-index: 10;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .rec-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    nav {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-youtube-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .click-hint {
        font-size: 0.6rem;
        padding: 0.15rem 0.3rem;
        bottom: 0.75rem;
        right: 0.75rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    display: block;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 800px;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    position: relative;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: #aaa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.modal-header img {
    height: 80px;
    margin-right: 1.5rem;
}

.modal-header h2 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.modal-header h3 {
    color: var(--primary-color);
    font-weight: 600;
}

.modal-body h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.rec-card {
    cursor: pointer;
}

/* Media Queries */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 1.5rem;
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
    }

    .modal-header img {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .rec-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    nav {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-youtube-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* Videos Section */
.videos {
    padding: 4rem 0;
    background: var(--light-bg);
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.video-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-card h3 {
    padding: 1rem;
    font-size: 1rem;
    color: var(--dark);
    margin: 0;
    line-height: 1.4;
}

.video-cta {
    margin-top: 3rem;
    text-align: center;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.modal-video-container {
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-embed-half {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.video-embed-half iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.modal-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .modal-video-grid {
        grid-template-columns: 1fr;
    }
}

/* Problem Sections */
.reasoning-problems,
.math-problems,
.coding-problems {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.problem-card {
    background-color: var(--card-bg);
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    transition: all 0.3s;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.problem-content {
    flex: 1;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.problem-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.problem-content .answer {
    font-weight: 600;
    color: var(--primary-color);
}

.problem-content ul {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.problem-content li {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    margin-bottom: 0.5rem;
}

.problem-content table {
    max-width: 100%;
    overflow-x: auto;
}

/* Ensure all text content respects container bounds */
.problem-content * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Force break long words, numbers, and currency */
.problem-content {
    word-break: normal;
    overflow-wrap: break-word;
}

.problem-content p,
.problem-content li {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
}

.copy-btn {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    flex-shrink: 0;
    align-self: flex-start;
    transition: all 0.3s;
}

.copy-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .problem-card {
        flex-direction: column;
        padding: 1rem;
    }

    .copy-btn {
        align-self: flex-end;
    }
    
    .problem-content {
        width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .problem-content p {
        width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        line-height: 1.5;
    }
    
    .problem-content ul {
        padding-left: 1rem;
        margin: 0.5rem 0;
    }
    
    .problem-content li {
        margin-bottom: 0.5rem;
        line-height: 1.4;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .problem-content table {
        width: 100%;
        font-size: 0.9rem;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    .problem-content table td,
    .problem-content table th {
        padding: 0.25rem;
        font-size: 0.85rem;
    }
}

/* Touch-device specific adjustments: disable hover raise that can steal taps */
@media (hover: none) {
    .problem-card:hover {
        transform: none;
        box-shadow: var(--card-shadow);
    }
    .copy-btn:hover {
        transform: none;
        background-color: var(--primary-color);
    }
}

/* Improve tap behavior on mobile for the copy button */
.copy-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Fully disable raise on touch/coarse pointers and small screens */
@media (pointer: coarse), (max-width: 1024px) {
    .problem-card:hover,
    .problem-card:active,
    .problem-card:focus,
    .problem-card:focus-within {
        transform: none !important;
        box-shadow: var(--card-shadow) !important;
    }
    .copy-btn:hover {
        transform: none !important;
    }
}

/* Extra small screens and very narrow viewports */
@media (max-width: 480px) {
    .problem-card {
        padding: 0.75rem;
        margin: 0.5rem 0;
    }
    
    .problem-content {
        font-size: 0.9rem;
        word-break: normal;
        overflow-wrap: break-word;
    }
    
    .problem-content p,
    .problem-content li {
        font-size: 0.9rem;
        line-height: 1.4;
        word-break: normal;
        overflow-wrap: break-word;
    }
    
    .problem-content ul {
        padding-left: 0.75rem;
    }
}