/*
 ╔═══════════════════════════════════════════════════════╗
 ║             Svenska Reformationsbibeln CSS            ║
 ║                    Version 2.4 (2025)                 ║
 ║                     Reorganized                        ║
 ╚═══════════════════════════════════════════════════════╝
*/

/* ═══════════════════════════════════════════════════════════
   1. RESET, VARIABLES & BASE STYLES
   ═══════════════════════════════════════════════════════════ */

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

:root {
    /* Color Variables */
    --primary-bg: #f4f0e0;
    --primary-text: #4a3426;
    --accent-color: #8b6914;
    --hover-color: #6d4c36;
    --border-color: #d4c5a9;
    --shadow-color: rgba(74, 52, 38, 0.1);
    --card-bg: #faf8f0;
    --red-accent: #AE3337;
    --red-hover: #8B2A2E;
    
    /* Gradient Variables */
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
}

body {
    font-family: 'EB Garamond', Garamond, serif;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.2;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    font-size: 14px;
}

p { 
    font-size: 14px; 
}

kbd {
    display: inline-block;
    padding: 0.2em 0.6em;
    font-size: 0.9em;
    border-radius: 6px;
    border: 1px solid #582300;
    color: var(--primary-bg);
    background: #6d50002f;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
}

/* ═══════════════════════════════════════════════════════════
   2. HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════════ */

.header {
    background: var(--primary-bg);
    border-bottom: 3px solid var(--border-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    max-height: 100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5rem;
}

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

.logo-icon {
    width: 10rem;
    height: 10rem;
    background: url("img/main_srb_v16_lower_text_innershadow.webp") center/100% no-repeat;
    background: url("img/srb_bold_dampended_red_not_done.png") center/100% no-repeat;
    border-radius: 2px;
}

/* Changes the logo to a version with the sword from the video on the main page*/
/*
.logo-icon:hover {
    width: 230px;
    height: 230px;
    background: url("img/sword_logo.png") center/100% no-repeat;
    border-radius: 2px;
}
*/

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary-text);
    margin: 3px 0;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.nav-menu a {
    color: var(--primary-text);
    text-decoration: none;
    font-size: 1.5em;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--hover-color);
}

/* ═══════════════════════════════════════════════════════════
   3. HERO SECTION
   ═══════════════════════════════════════════════════════════ */

.hero {
    background: linear-gradient(135deg, var(--primary-bg) 0%, #ede7d3 100%);
    padding: 1rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--primary-text);
    margin: 0 auto 1rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px var(--shadow-color);
    line-height: 1.2;
    padding: 0 1rem;
}




.hero h1 .title-part1,
.hero h1 .title-part2 {
    display: inline;
}

.hero-subtitle {
    font-size: clamp(1.7rem, 3vw, 1.3rem);
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-description {
    font-size: clamp(1.7rem, 2.5vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-ight: auto;
}

.hero-description i p {
    text-align: center;
    color: #4a3426bc;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    text-align: left;
}

.hero-container-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.hero-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
}


.hero-description img {
    display: block;
    margin: 0;
    padding: 0;
    height: auto;
}

.hero-description a {
    display: block;
    margin: 0;
    padding: 0;
}

/* ═══════════════════════════════════════════════════════════
   4. DONATION & PURCHASE COMPONENTS
   ═══════════════════════════════════════════════════════════ */

.donation-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 400px;
    margin: 0 auto;
    padding: 1rem;
}

.donation-button {
    background: linear-gradient(135deg, #AE3337 60%, #8B2A2E 100%);
    color: white;
    border: none;
    padding: 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 280px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(174, 51, 55, 0.2);
}

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

.donation-button:hover::before {
    left: 100%;
}

.donation-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(174, 51, 55, 0.3);
}

.donation-button:active {
    transform: translateY(0);
}

.donation-button img {
    transition: transform 0.2s ease;
    filter: brightness(1.1);
}

.donation-button:hover img {
    transform: scale(1.05);
}

.donation-title {
    color: white;
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.bible-purchase {
    width: 100%;
    max-width: 280px;
    padding: 1rem 0;
    transition: none;
}

.bible-input-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-align: center;
}

.input-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.input-row input {
    width: 70px;
    padding: 0.7rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    background: white;
    transition: all 0.2s ease;
}

.input-row input:focus {
    outline: none;
    border-color: var(--red-accent);
    box-shadow: 0 0 0 2px rgba(174, 51, 55, 0.1);
}

.total {
    font-weight: 700;
    color: var(--red-accent);
    font-size: 1.1rem;
    text-align: center;
}

.buy-btn {
    background: linear-gradient(135deg, var(--red-accent) 0%, var(--red-hover) 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    box-shadow: 0 1px 4px rgba(174, 51, 55, 0.2);
}

.buy-btn:hover {
    background: linear-gradient(135deg, var(--red-hover) 0%, #72232a 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(174, 51, 55, 0.3);
}

.buy-btn:active {
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   6. MAIN CONTENT & SECTIONS
   ═══════════════════════════════════════════════════════════ */

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 600;
    color: var(--primary-text);
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════
   7. QUICK ACCESS SECTION
   ═══════════════════════════════════════════════════════════ */

.quick-access {
    background: linear-gradient(135deg, #f8f4e6 0%, #ede7d3 100%);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 6px 25px var(--shadow-color);
}

.quick-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.quick-btn {
    cursor: pointer;
    background: var(--gradient-gold);
    color: rgb(43, 29, 0);
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-size: clamp(1.5rem, 2.5vw, 1.1rem);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    min-width: 120px;
    text-align: center;
}

.quick-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.quick-btn i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* ═══════════════════════════════════════════════════════════
   8. NAVIGATION CARDS & GRID
   ═══════════════════════════════════════════════════════════ */

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.nav-card {
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--shadow-color);
    border-color: #b18d22dc;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: #6d4c36;
    box-shadow: 0 4px 15px rgba(74, 52, 38, 0.3);
}

.card-title {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 600;
    color: var(--primary-text);
    text-align: center;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.card-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.main-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(139, 105, 20, 0.1);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    min-height: 60px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 1rem;
}

.main-link:hover {
    background: rgba(139, 105, 20, 0.15);
}

.main-link span {
    color: var(--primary-text);
    font-weight: 500;
    font-size: clamp(1.3rem, 2.5vw, 1.05rem);
    line-height: 1.3;
    flex: 1;
    text-align: left;
    word-break: break-word;
}

.expand-btn {
    background: #66360054;
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.2s ease;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expand-btn:hover {
    background: var(--hover-color);
    transform: scale(1.05);
}

.sub-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
}

.sub-links.expanded {
    padding-bottom: 0.5rem;
}

.sub-links a {
    font-size: clamp(1.1rem, 2.8vw, 1.25rem) !important;
    font-weight: 500 !important;
    color: var(--primary-text) !important;
    text-decoration: none !important;
    padding: 12px 16px !important;
    margin: 8px 0 !important;
    display: block !important;
    transition: all 0.2s ease !important;
    line-height: 1.4 !important;
    border-bottom: 1px solid rgba(212, 197, 169, 0.3) !important;
}

.sub-links a:hover {
    color: var(--hover-color) !important;
    transform: translateX(4px) !important;
    padding-left: 20px !important;
    background-color: rgba(139, 105, 20, 0.05);
}

/* ═══════════════════════════════════════════════════════════
   9. IMAGE UTILITIES
   ═══════════════════════════════════════════════════════════ */

.hero-description img,
img[src*="swish"],
img[src*="qr"] {
    width: 200px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.img-40, .swish-logo {
    width: 40%;
    height: auto;
    max-width: 120px;
    margin: 0 auto;
}

.img-50, .flag-image {
    width: 50%;
    height: auto;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   9.1 IMAGE UTILITIES
   ═══════════════════════════════════════════════════════════ */

.hero-description img,
img[src*="swish"],
img[src*="qr"] {
    width: 200px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

img[src*="kanal_10"] {
    width: 400px;
    height: auto;
    max-width: 90%;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   10. NOTIFICATIONS
   ═══════════════════════════════════════════════════════════ */

.bible-notification,
.donation-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--red-accent);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    font-size: 14px;
    font-weight: 500;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bible-notification.show,
.donation-notification.show {
    transform: translateX(0);
}

.donation-notification {
    background: var(--gradient-gold);
    color: #2b1d00;
}

/* ═══════════════════════════════════════════════════════════
   11. FOOTER
   ═══════════════════════════════════════════════════════════ */

.footer {
    background: var(--primary-text);
    color: var(--primary-bg);
    text-align: center;
    padding: 2.5rem 2rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer h3 {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    margin-bottom: 1rem;
}

.footer p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════
   12. ANIMATIONS & UTILITIES
   ═══════════════════════════════════════════════════════════ */

.fade-in,
.scroll-fade,
.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Link overrides */
.nav-card a,
.main-link span {
    color: var(--primary-text) !important;
    text-decoration: none !important;
}

/* ═══════════════════════════════════════════════════════════
   13. RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════ */

/* Title breaks for smaller screens */
@media (max-width: 600px) {
    .hero h1 .title-break::before {
        content: "\A";
        white-space: pre;
    }
    .hero h1 .title-part2::before {
        content: "-";
    }
}

/* Mobile Devices (768px and below) */
@media (max-width: 768px) {
    body { 
        font-size: 16px; 
        line-height: 1.4; 
    }
    
    .hero { 
        background: #f4f0e0 !important; 
    }
    
    /* Navigation */
    .nav-container { 
        padding: 0.6rem 1rem; 
    }
    
    .logo-icon { 
        width: 10.2rem; 
        height: 10.2rem; 
    }
    .logo-icon:hover{

    }
    
    .hamburger { 
        display: flex; 
    }
    
    .hamburger.active span:nth-child(1) { 
        transform: rotate(45deg) translate(5px, 5px); 
    }
    
    .hamburger.active span:nth-child(2) { 
        opacity: 0; 
    }
    
    .hamburger.active span:nth-child(3) { 
        transform: rotate(-45deg) translate(7px, -6px); 
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--primary-bg);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 4px 10px var(--shadow-color);
        padding: 1.5rem 1rem;
        z-index: 999;
    }
    
    .nav-menu.active { 
        left: 0; 
    }
    
    .nav-menu a { 
        font-size: 1.2rem; 
        padding: 14px 18px; 
        min-height: 50px; 
    }
    
    /* Layout adjustments */
    .hero { 
        padding: 2rem 1rem; 
    }
    
    .main-content { 
        padding: 2rem 0.5rem; 
    }
    
    .nav-grid { 
        grid-template-columns: 1fr; 
        gap: 1.2rem; 
    }
    
    .nav-card { 
        padding: 1.3rem; 
    }
    
    /* Hero container */
    .hero-container-flex { 
        flex-direction: column; 
        gap: 1.5rem; 
    }
    
    .donation-section { 
        padding: 0 1rem; 
        max-width: 100%; 
    }
    
    .donation-button { 
        max-width: 100%; 
        padding: 0.8rem; 
    }
    
    .bible-purchase { 
        max-width: 100%; 
    }
    
    /* Video responsive adjustments */
    .video-container {
        max-width: 400px;
        margin: 10px auto 5px;
        padding: 6px;
    }
    
    .play-button-overlay {
        width: 60px;
        height: 60px;
    }
    
    .play-icon {
        border-left: 18px solid white;
        border-top: 11px solid transparent;
        border-bottom: 11px solid transparent;
        margin-left: 4px;
    }

    /* Image adjustments */
    .img-40, .swish-logo { 
        width: 60%; 
    }
    
    .img-50, .flag-image { 
        width: 70%; 
    }
    
    /* Notifications */
    .bible-notification, .donation-notification {
        right: 10px; 
        left: 10px; 
        transform: translateY(-100px);
    }
    
    .bible-notification.show, .donation-notification.show { 
        transform: translateY(0); 
    }
}

/* Small Mobile Devices (480px and below) */




@media (max-width: 480px) {
    .main-content { 
        font-size:5px;
        padding: 0 !important; 
    }
    
    .nav-container { 
        padding: 0.6rem 1rem !important; 
        min-height: 75px !important; 
    }
    
    .logo-icon { 
        width: 130px !important; 
        height: 130px !important; 
    }
    
    .nav-grid { 
        padding: 0 0.5rem !important; 
    }
    
    .quick-access { 
        margin: 1rem 0.5rem !important; 
    }
    
    .video-container {
        max-width: 320px;
        margin: 8px auto 3px;
        padding: 4px;
    }
    
    .play-button-overlay {
        width: 50px;
        height: 50px;
    }
    
    .play-icon {
        border-left: 15px solid white;
        border-top: 9px solid transparent;
        border-bottom: 9px solid transparent;
        margin-left: 3px;
    }
    
    .donation-button img { 
        width: 35%; 
    }
    
    .bible-input-group label { 
        text-align: center; 
        font-size: 0.85rem; 
    }
    
    .input-row { 
        justify-content: space-between; 
        gap: 0.3rem; 
    }
    
    .input-row input { 
        width: 45px; 
        padding: 0.3rem; 
        font-size: 0.85rem; 
    }
    
    .buy-btn { 
        padding: 0.3rem 0.5rem; 
        font-size: 0.75rem; 
        min-width: 50px; 
    }
}

/* Very Small Screens (360px and below) */
@media (max-width: 360px) {
    .video-container {
        max-width: 280px;
        margin: 5px auto 3px;
        padding: 3px;
    }
    
    .play-button-overlay {
        width: 45px;
        height: 45px;
    }
    
    .play-icon {
        border-left: 12px solid white;
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
        margin-left: 2px;
    }
}

/* Desktop Layouts (768px and above) */
@media (min-width: 768px) {
    .hero-container-flex {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 3rem;
        margin-top: 2rem;
    }
    
    .hero-item:first-child { 
        flex: 2; 
        text-align: left; 
    }
    
    .hero-item:last-child { 
        flex: 1; 
        min-width: 200px; 
    }
}

/* Large Desktop (1025px and above) */
@media (min-width: 1025px) {
    .main-content { 
        max-width: 1300px; 
        padding: 3.5rem 2.5rem; 
    }
    
    .nav-grid { 
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
        gap: 2rem; 
    }
    
    .hero { 
        padding: 3.5rem 2.5rem; 
    }
}



/* Hide number input spinner arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

@media (max-width: 767px) {
    #qrCodeContainer {
        display: none !important;
    }
}


/* Hide number input arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Center and size the quantity input */
.quantity-display {
    width: 80px !important;
    text-align: center !important;
}

/* Hide QR code on mobile */
@media (max-width: 767px) {
    #qrCodeContainer {
        display: none !important;
    }
}
/* Mobile Devices (768px and below) */
@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(2.2rem, 5vw, 2.8rem) !important;
    }
    
    .title-part1,
    .title-part2 {
        font-size: inherit !important;
    }
    
    .hero-subtitle {
        font-size: clamp(1.2rem, 2.5vw, 1rem) !important;
    }
    
    .hero-container-flex {
        gap: 1rem !important;
        margin-top: 0.5rem !important;
    }
    
    .hero-item {
        max-width: 100% !important;
    }
    
    .hero-description {
        font-size: clamp(1.5rem, 2vw, 1rem) !important;
        line-height: 1.4;
    }
}

/* Small Mobile Devices (480px and below) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(1.8rem, 4.5vw, 2.2rem) !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .hero-description {
        font-size: 1.2rem !important;
    }
}

/* Very Small Screens (360px and below) */
@media (max-width: 360px) {
    .hero h1 {
        font-size: clamp(1.5rem, 4vw, 1.8rem) !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
    
    .hero-description {
        font-size: 0.8rem !important;
    }
}
.video-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin: 15px auto 5px;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: none;
    width: fit-content;
    max-width: 500px;
    padding: 0;
    border: none;
    background: none;
}

.video-container:hover {
}

.video-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.video-container:hover img {
    transform: scale(1.02);
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(174, 51, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.video-container:hover .play-button-overlay {
    background: rgba(174, 51, 55, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 18px solid white;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    margin-left: 4px;
}



.donation-button,
.donation-button h3 {
    text-decoration: none !important;
}

.donation-button:hover,
.donation-button:focus,
.donation-button:active {
    text-decoration: none !important;
}


/* Improved Kanal 10 video styling */
img[src*="kanal_10"] {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    border: 3px solid rgba(139, 105, 20, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

img[src*="kanal_10"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    border-color: rgba(139, 105, 20, 0.5);
}

/* Video caption styling */
.video-caption {
    text-align: center;
    margin-top: 12px;
    margin-bottom: 0;
}

.video-caption p {
    color: #6d4c36;
    font-size: 1rem;
    font-style: italic;
    margin: 0;
    padding: 0 1rem;
    line-height: 1.4;
}

/* If using the old italic structure, fix it */
.hero-description i p {
    text-align: center !important;
    color: #6d4c36 !important;
    font-size: 1rem !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    font-style: italic !important;
    padding: 0 1rem !important;
    line-height: 1.4 !important;
}

/* Mobile responsive improvements for video */
@media (max-width: 768px) {
    img[src*="kanal_10"] {
        max-width: 380px;
        border-radius: 12px;
        border-width: 2px;
    }
    
    .video-caption p,
    .hero-description i p {
        font-size: 0.9rem !important;
        padding: 0 0.5rem !important;
    }
}

@media (max-width: 480px) {
    img[src*="kanal_10"] {
        max-width: 320px;
        border-radius: 8px;
    }
    
    .video-caption p,
    .hero-description i p {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 360px) {
    img[src*="kanal_10"] {
        max-width: 280px;
    }
    
    .video-caption p,
    .hero-description i p {
        font-size: 0.8rem !important;
    }
}

/* Enhanced video container */
.video-container {
    position: relative;
    display: block;
    cursor: pointer;
    margin: 20px auto 8px;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: fit-content;
    max-width: 450px;
    padding: 0;
    background: none;
}

.video-container:hover {
    transform: translateY(-1px);
}

/* Play button improvements */
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(174, 51, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 10;
    backdrop-filter: blur(2px);
}

.video-container:hover .play-button-overlay {
    background: rgba(174, 51, 55, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

/* Mobile play button adjustments */
@media (max-width: 768px) {
    .play-button-overlay {
        width: 60px;
        height: 60px;
    }
    
    .play-icon {
        border-left: 18px solid white;
        border-top: 11px solid transparent;
        border-bottom: 11px solid transparent;
        margin-left: 4px;
    }
}

@media (max-width: 480px) {
    .play-button-overlay {
        width: 50px;
        height: 50px;
    }
    
    .play-icon {
        border-left: 15px solid white;
        border-top: 9px solid transparent;
        border-bottom: 9px solid transparent;
        margin-left: 3px;
    }
}

@media (max-width: 360px) {
    .play-button-overlay {
        width: 45px;
        height: 45px;
    }
    
    .play-icon {
        border-left: 12px solid white;
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
        margin-left: 2px;
    }
}


/* Add this to your existing styles.css or in a <style> tag */

/* Enhanced hero section with grainy gradient background */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(139, 105, 20, 0.15), rgba(139, 105, 20, 0.05)),
        radial-gradient(ellipse at 70% 80%, rgba(174, 51, 55, 0.1), rgba(174, 51, 55, 0.02)),
        url('noise.svg');
    filter: contrast(120%) brightness(110%);
    mix-blend-mode: multiply;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Enhanced nav cards with subtle grainy texture */
.nav-card {
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(139, 105, 20, 0.03), rgba(139, 105, 20, 0.01)),
        url('noise.svg');
    filter: contrast(110%) brightness(150%);
    mix-blend-mode: multiply;
    opacity: 0.5;
    z-index: 1;
}

.nav-card > * {
    position: relative;
    z-index: 2;
}

/* Enhanced donation section with warm grainy effect */
.donation-section {
    position: relative;
    overflow: hidden;
}

.donation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 60% 40%, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02)),
        url('noise.svg');
    filter: contrast(115%) brightness(130%);
    mix-blend-mode: multiply;
    border-radius: inherit;
    z-index: 1;
}

.donation-section > * {
    position: relative;
    z-index: 2;
}

/* Enhanced quick access buttons with grainy hover effect */
.quick-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.quick-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(139, 105, 20, 0.05), rgba(139, 105, 20, 0.01)),
        url('noise.svg');
    filter: contrast(120%) brightness(140%);
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    z-index: 1;
}

.quick-btn:hover::before {
    opacity: 1;
}

.quick-btn > * {
    position: relative;
    z-index: 2;
}

/* Enhanced footer with subtle texture */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(180deg, rgba(74, 52, 38, 0.05), rgba(74, 52, 38, 0.02)),
        url('noise.svg');
    filter: contrast(108%) brightness(120%);
    mix-blend-mode: multiply;
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
}

/* Enhanced main title with grainy text shadow effect */
.title-part1, .title-part2 {
    position: relative;
}

.title-part1::before,
.title-part2::before {
    content: attr(data-text);
    position: absolute;
    top: 2px;
    left: 2px;
    background: 
        linear-gradient(45deg, rgba(139, 105, 20, 0.3), rgba(139, 105, 20, 0.1)),
        url('noise.svg');
    filter: contrast(150%) brightness(80%);
    mix-blend-mode: multiply;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: -1;
}


/* Optional: Enhanced video container with grainy frame effect 
.video-container {
    position: relative;
    overflow: hidden;
}

.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 50% 50%, rgba(139, 105, 20, 0.1), rgba(139, 105, 20, 0.02)),
        url('noise.svg');
    filter: contrast(125%) brightness(90%);
    mix-blend-mode: overlay;
    pointer-events: none;
    border-radius: inherit;
}
*/