/* Base styles */
:root {
    --primary-color: #d42030;    /* Palestinian flag red */
    --secondary-color: #006c35;  /* Palestinian flag green */
    --accent-color: #000000;     /* Palestinian flag black */
    --white-color: #ffffff;      /* Palestinian flag white */
    --light-color: #f8f8f8;
    --dark-color: #222222;
    --gray-color: #666666;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --heavy-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* For fixed headers */
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    position: relative;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--secondary-color);
}

button {
    cursor: pointer;
}

button:focus, a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--white-color);
}

.flag-loader {
    width: 80px;
    height: 50px;
    position: relative;
    margin: 0 auto 15px;
    background: linear-gradient(to bottom, 
        var(--accent-color) 33.33%, 
        var(--white-color) 33.33%, 
        var(--white-color) 66.66%, 
        var(--secondary-color) 66.66%);
    overflow: hidden;
    animation: wave 1.5s ease-in-out infinite;
}

.flag-loader:before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    left: 0;
    top: 0;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 40px solid var(--primary-color);
}

@keyframes wave {
    0% { transform: skewY(0deg); }
    25% { transform: skewY(3deg); }
    75% { transform: skewY(-3deg); }
    100% { transform: skewY(0deg); }
}

/* Flag overlay */
.flag-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: -1;
}

/* Palestinian Flag Components */
.flag-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.flag {
    width: 150px;
    height: 100px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    transform: none;
    transition: transform var(--transition-medium);
    background: linear-gradient(to bottom, 
        var(--accent-color) 33.33%, 
        var(--white-color) 33.33%, 
        var(--white-color) 66.66%, 
        var(--secondary-color) 66.66%);
}

.flag:hover {
    transform: none;
}

.flag:before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    left: 0;
    top: 0;
    border-top: 50px solid transparent;
    border-bottom: 50px solid transparent;
    border-left: 75px solid var(--primary-color);
}

.flag-black, .flag-white, .flag-green, .flag-red {
    height: 25%;
    width: 100%;
}

.flag-black {
    background-color: var(--accent-color);
}

.flag-white {
    background-color: var(--white-color);
}

.flag-green {
    background-color: var(--secondary-color);
}

.flag-red {
    background-color: var(--primary-color);
}

.flag-small {
    width: 50px;
    height: 30px;
    margin: 10px;
    position: relative;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to bottom, 
        var(--accent-color) 33.33%, 
        var(--white-color) 33.33%, 
        var(--white-color) 66.66%, 
        var(--secondary-color) 66.66%);
    border-radius: 2px;
    transition: transform var(--transition-medium);
    overflow: hidden;
}

.flag-small:before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    left: 0;
    top: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid var(--primary-color);
}

.flag-small:hover {
    transform: translateY(-3px);
}

.flag-small.left {
    float: left;
    margin-right: 20px;
}

.flag-small.right {
    float: right;
    margin-left: 20px;
}

.flag-container-small.center {
    display: flex;
    justify-content: center;
    margin: 10px 0 20px;
}

.flag-container-small.center:before {
    content: '';
    width: 60px;
    height: 40px;
    display: block;
    background: linear-gradient(to bottom, 
        var(--accent-color) 33.33%, 
        var(--white-color) 33.33%, 
        var(--white-color) 66.66%, 
        var(--secondary-color) 66.66%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.flag-container-small.center:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    left: 0;
    top: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 30px solid var(--primary-color);
}

.footer-flag-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-flag {
    width: 100px;
    height: 60px;
    background: linear-gradient(to bottom, 
        var(--accent-color) 33.33%, 
        var(--white-color) 33.33%, 
        var(--white-color) 66.66%, 
        var(--secondary-color) 66.66%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    animation: subtle-wave 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.footer-flag:before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    left: 0;
    top: 0;
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    border-left: 50px solid var(--primary-color);
}

.floating-flag {
    position: absolute;
    width: 120px;
    height: 75px;
    top: -35px;
    right: 50px;
    background: linear-gradient(to bottom, 
        var(--accent-color) 33.33%, 
        var(--white-color) 33.33%, 
        var(--white-color) 66.66%, 
        var(--secondary-color) 66.66%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    animation: float 6s ease-in-out infinite;
    z-index: 10;
    transform: rotate(5deg);
    position: relative;
    overflow: hidden;
}

.floating-flag:before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    left: 0;
    top: 0;
    border-top: 37.5px solid transparent;
    border-bottom: 37.5px solid transparent;
    border-left: 60px solid var(--primary-color);
}

@keyframes float {
    0% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
    100% { transform: translateY(0) rotate(5deg); }
}

@keyframes subtle-wave {
    0% { transform: skewY(0deg); }
    50% { transform: skewY(2deg); }
    100% { transform: skewY(0deg); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    position: relative;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--white-color);
    font-weight: 300;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #333;
}

.dark-section .lead-text {
    color: #f0f0f0;
}

/* Buttons */
.cta-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button, .secondary-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--white-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    transition: all 0.3s;
    z-index: -1;
}

.cta-button:hover {
    color: var(--white-color);
}

.cta-button:hover::after {
    height: 100%;
}

.cta-button.large {
    padding: 1rem 3rem;
    font-size: 1.3rem;
}

.secondary-button {
    background-color: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}

.secondary-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--white-color);
    transition: all 0.3s;
    z-index: -1;
}

.secondary-button:hover {
    color: var(--primary-color);
}

.secondary-button:hover::after {
    height: 100%;
}

/* Layout */
.main-header, main, footer {
    position: relative;
    z-index: 1;
}

/* Combined Hero Header Section */
.hero-header {
    position: relative;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom: 10px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    z-index: 10;
    padding-top: 3rem;
    margin-bottom: 3rem;
    max-height: none;
    overflow: visible;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0L100,100" stroke="rgba(255,255,255,0.05)" stroke-width="2"/><path d="M100,0L0,100" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
    background-size: 50px 50px;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 5;
    padding: 0 2rem 3rem;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    z-index: 5;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: transparent !important;
    max-height: none;
    overflow: visible;
}

.resistance-image {
    width: 100%;
    height: 500px;
    display: block;
    object-fit: cover;
    object-position: center 25%;
    opacity: 0.9;
    transform: scale(1.02);
    max-height: 400px;
    background: transparent;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 25px;
}

.image-caption p {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.6;
    font-style: italic;
    text-align: center;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.triangle-separator {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: white;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    z-index: 6;
}

main {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    position: relative;
    z-index: 1;
}

section {
    margin-bottom: 5rem;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.dark-section {
    background: linear-gradient(135deg, #111, #222);
    color: var(--white-color);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-divider {
    height: 4px;
    width: 60px;
    margin: 1rem auto;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Hero and Image Sections */
/* Remove or comment out the .hero-section styles since we've merged it with the header */
/*
.hero-section {
    padding: 0;
    overflow: hidden;
    position: relative;
    margin-top: 0;
    border-radius: 0;
    z-index: 2;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.image-container {
    position: relative;
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    margin-top: 3rem;
}
*/

/* Info Cards with Highlight */
.info-card.highlight {
    border-left: 4px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 2;
}

.info-card.highlight:hover {
    transform: translateY(-10px) scale(1.05);
}

.info-card.highlight .card-icon {
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-medium);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-5px);
}

/* Call to Action improved */
.call-to-action {
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 5rem 0;
    border-radius: 12px;
}

.action-content {
    position: relative;
    z-index: 2;
    padding: 5rem 3rem;
    text-align: center;
}

.action-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.95;
    z-index: 1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="56" height="28" viewBox="0 0 56 28"><path fill="rgba(255,255,255,0.05)" d="M56 26v2h-7.75c2.3-1.27 4.94-2 7.75-2zm-26 2a2 2 0 1 0-4 0h-4.09A25.98 25.98 0 0 0 0 16v-2c.67 0 1.34.02 2 .07V14a2 2 0 0 0-2-2v-2a4 4 0 0 1 3.98 3.6 28.09 28.09 0 0 1 2.8-3.86A8 8 0 0 0 0 6V4a9.99 9.99 0 0 1 8.17 4.23c.94-.95 1.96-1.83 3.03-2.63A13.98 13.98 0 0 0 0 0h7.75c2 1.1 3.73 2.63 5.1 4.45 1.12-.72 2.3-1.37 3.53-1.93A20.1 20.1 0 0 0 14.28 0h2.7c.45.56.88 1.14 1.29 1.74 1.3-.48 2.63-.87 4-1.15-.11-.2-.23-.4-.36-.59H26v.07a28.4 28.4 0 0 1 4 0V0h4.09l-.37.59c1.38.28 2.72.67 4.01 1.15.4-.6.84-1.18 1.3-1.74h2.69a20.1 20.1 0 0 0-2.1 2.52c1.23.56 2.41 1.2 3.54 1.93A16.08 16.08 0 0 1 48.25 0H56c-4.58 0-8.65 2.2-11.2 5.6 1.07.8 2.09 1.68 3.03 2.63A9.99 9.99 0 0 1 56 4v2a8 8 0 0 0-6.77 3.74c1.03 1.2 1.97 2.5 2.79 3.86A4 4 0 0 1 56 10v2a2 2 0 0 0-2 2.07 28.4 28.4 0 0 1 2-.07v2c-9.2 0-17.3 4.78-21.91 12H30zM7.75 28H0v-2c2.81 0 5.46.73 7.75 2zM56 20v2c-.67 0-1.34-.02-2-.07V22a2 2 0 0 0 2 2v2a4 4 0 0 1-3.98-3.6 28.09 28.09 0 0 1-2.8 3.86A8 8 0 0 0 56 30v-2a9.99 9.99 0 0 1-8.17-4.23c-.94.95-1.96 1.83-3.03 2.63A13.98 13.98 0 0 0 56 34h-7.75a16.08 16.08 0 0 1-5.1-4.45c-1.12.72-2.3 1.37-3.53 1.93A20.1 20.1 0 0 0 41.72 34h-2.7c-.45-.56-.88-1.14-1.29-1.74-1.3.48-2.63.87-4 1.15.11.2.23.4.36.59H30v-.07a28.4 28.4 0 0 1-4 0V34h-4.09l.37-.59a28.7 28.7 0 0 1-4.01-1.15c-.4.6-.84 1.18-1.3 1.74h-2.69c.92-.9 1.67-1.92 2.1-2.52-1.23-.56-2.41-1.2-3.54-1.93A16.08 16.08 0 0 1 7.75 34H0c4.58 0 8.65-2.2 11.2-5.6-1.07-.8-2.09-1.68-3.03-2.63A9.99 9.99 0 0 1 0 30v-2c2.8 0 5.3-1.55 6.77-3.74-1.03-1.2-1.97-2.5-2.79-3.86A4 4 0 0 1 0 24v-2a2 2 0 0 0 2-2.07 28.4 28.4 0 0 1-2 .07v-2c9.2 0 17.3-4.78 21.91-12H26a28.4 28.4 0 0 1-4 0V6.62L20.52 8l-.01.01c-1.32.66-2.59 1.41-3.8 2.25a29.35 29.35 0 0 0-4.93-4.11L10.35 8l-.01-.01a28.42 28.42 0 0 0-3.22-1.75 38.45 38.45 0 0 0-3.56 4.83c-1.23-1.57-1.9-3.54-1.9-5.57 0-1.05.18-2.05.5-2.99-1.88.92-3.55 2.26-4.86 3.95-1.29-2.04-2.03-4.45-2.03-7.05 0-3.33 1.28-6.48 3.43-8.86L0 6v2c4.01 0 7.75 2.11 9.77 5.53a28.06 28.06 0 0 0-.77 4.08c-.05-.34-.04-.7-.04-1.05 0-2.16.65-4.17 1.76-5.84a31.68 31.68 0 0 1 3.6 3.36c-1.3.74-2.93 1.17-4.69 1.17v2c.84 0 1.65-.11 2.41-.31.14.31.29.61.45.91-1.69 1.41-3.03 3.26-3.71 5.4a29.29 29.29 0 0 1-4.02-5.92 28.07 28.07 0 0 0-1.25 5.55A38.77 38.77 0 0 1 0 20v2zM30 6a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm12.98 5.69a1.5 1.5 0 1 0 2.12-2.12 1.5 1.5 0 0 0-2.12 2.12zM16.54 2a2 2 0 0 0-2.12 3.31 29.52 29.52 0 0 1 2.48-1.64l.01-.01c.34-.23.69-.44 1.04-.64l-.33-.19a2.95 2.95 0 0 0-1.08-.83zm9.91 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm-3.46-5.31A2.99 2.99 0 0 0 26.54 2h-1.8c-.83.54-1.62 1.13-2.38 1.75l-.02.02c-.28.22-.54.46-.8.7.23.23.47.45.72.66.45.39.93.75 1.43 1.08.51-.91 1.46-1.52 2.55-1.52h.4a3 3 0 0 0-.46-.1zm5.9-1.54c.22.33.42.67.6 1.03a38.92 38.92 0 0 0 3.58-4.84 3 3 0 0 0-4.18.81zm3.75 10.95c.25-.1.49-.21.73-.33-1.09-.63-2.07-1.42-2.91-2.32-.32.34-.66.67-1.02.99.8.69 1.72 1.26 2.72 1.66h.48z"/></svg>');
}

/* Gallery image overlays */
.gallery-item {
    position: relative;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 5rem); /* Use a calculation based on description height */
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: 2;
}

.gallery-item:hover .image-overlay {
    opacity: 1;
}

/* Counter Section */
.counter-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 3rem 2rem;
    margin: -3rem 0 5rem;
    border-radius: 0;
    box-shadow: var(--heavy-shadow);
}

.counter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.counter-item {
    padding: 1.5rem;
}

.counter-number {
    font-size: 3rem;
    font-weight: 900;
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Cairo', sans-serif;
}

.counter-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background-color: var(--white-color);
    color: var(--dark-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--heavy-shadow);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Testimonial Section */
.testimonial-section {
    background-color: var(--secondary-color);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    margin: 5rem 0;
    box-shadow: var(--shadow);
}

.testimonial-quote {
    font-size: 1.5rem;
    line-height: 1.8;
    font-style: italic;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial-quote:before {
    content: '"';
    font-size: 5rem;
    position: absolute;
    left: -2rem;
    top: -2rem;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-author {
    margin-top: 2rem;
    font-weight: 600;
}

/* Stories Section */
.stories {
    padding: 3rem;
}

.story-item {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px dashed #ddd;
    position: relative;
}

.story-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.story-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 20px;
}

.story-item h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.story-item p {
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: justify;
}

/* Image Gallery */
.image-gallery {
    padding-bottom: 3rem;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-image {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    object-fit: cover;
    object-position: center;
}

.image-description {
    padding: 1.5rem;
    background-color: white;
    font-size: 1rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 5rem); /* Use a calculation based on description height */
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: 2;
}

@media (max-width: 768px) {
    .image-overlay {
        height: calc(100% - 4.5rem);
    }
    
    .flag {
        width: 120px;
        height: 80px;
        margin: 0 auto;
        transform: none;
        background: linear-gradient(to bottom, 
            var(--accent-color) 33.33%, 
            var(--white-color) 33.33%, 
            var(--white-color) 66.66%, 
            var(--secondary-color) 66.66%);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    
    .flag:before {
        content: '';
        position: absolute;
        width: 0;
        height: 0;
        left: 0;
        top: 0;
        border-top: 40px solid transparent;
        border-bottom: 40px solid transparent;
        border-left: 60px solid var(--primary-color);
    }
    
    .flag-overlay {
        display: none;
    }
    
    .triangle-separator {
        position: relative;
    }
    
    body {
        overflow-x: hidden;
    }
    
    /* Update flag elements to display properly on mobile */
    .header-bg, 
    .flag-container, 
    .flag-small, 
    .flag-overlay,
    .hero-header::before,
    .hero-header::after,
    .hero-image-container::before,
    .hero-image-container::after {
        background-color: transparent;
    }
    
    .flag-container {
        display: flex;
        margin-bottom: 1rem;
    }
    
    .flag {
        width: 120px;
        height: 80px;
        margin: 0 auto;
        transform: none;
    }
    
    .flag-overlay {
        display: none;
    }
    
    /* Stats-section improvements */
    .stats-section {
        padding: 2rem 1rem;
        flex-wrap: wrap;
    }
    
    .stat-card {
        flex: 1 1 45%;
        margin: 0.5rem;
        min-width: 130px;
    }
    
    .hero-header {
        padding-top: 1.5rem;
        padding-bottom: 30px;
        margin-top: 0;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        position: relative;
        overflow: hidden;
    }
    
    .banner {
        margin-top: 0;
        padding-top: 0;
    }
    
    .header-bg {
        display: block;
        opacity: 0.3;
    }
    
    .resistance-image {
        height: auto;
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .image-overlay {
        height: calc(100% - 4rem);
    }
    
    .flag {
        width: 100px;
        height: 70px;
        background: linear-gradient(to bottom, 
            var(--accent-color) 33.33%, 
            var(--white-color) 33.33%, 
            var(--white-color) 66.66%, 
            var(--secondary-color) 66.66%);
    }
    
    .flag:before {
        border-top: 35px solid transparent;
        border-bottom: 35px solid transparent;
        border-left: 50px solid var(--primary-color);
    }
    
    .counter-container {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .call-to-action {
        padding: 0;
    }
    
    .action-content {
        padding: 3rem 1.5rem;
    }
    
    .image-caption p {
        font-size: 1rem;
        padding: 10px;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 15px;
    }
    
    .floating-flag {
        display: none;
    }
    
    .info-cards, .security-container, .crypto-benefits {
        grid-template-columns: 1fr;
    }
    
    .resistance-image {
        height: 400px;
    }
    
    /* Additional hero header fixes for mobile */
    .hero-header {
        padding-top: 1rem;
        padding-bottom: 20px;
        margin-top: 0;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        position: relative;
        overflow: hidden;
    }
    
    .banner {
        margin-top: 0;
        padding-top: 0;
    }
    
    .header-content {
        padding: 0 1rem 1rem;
    }
    
    .hero-image-container {
        margin-top: 0.5rem;
    }
    
    .flag-container {
        margin-bottom: 0.5rem;
    }
    
    .flag {
        width: 100px;
        height: 70px;
    }
    
    .resistance-image {
        max-height: 300px;
    }
    
    /* Improved stats section for mobile */
    .stats-section {
        padding: 1.5rem 0.5rem;
    }
    
    .stat-card {
        flex: 1 1 100%;
        margin: 0.5rem 0;
    }
    
    /* Cryptocurrency section for mobile */
    .crypto-card {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .crypto-card.featured {
        transform: scale(1);
        margin: 1rem 0;
    }
    
    .crypto-section .section-header {
        padding: 1rem 0;
    }
    
    /* FAQ section for mobile */
    .faq-section .faq-item {
        margin-bottom: 1rem;
    }
    
    .faq-item h3 {
        font-size: 1rem;
    }
}

/* Additional responsive fixes */
@media (max-width: 360px) {
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .resistance-image {
        height: 350px;
    }
    
    .image-caption p {
        font-size: 0.9rem;
    }
    
    section {
        padding: 1.5rem;
    }
    
    .hero-header {
        padding-top: 0;
        margin-top: 0;
    }
    
    .banner {
        margin-top: 0;
        padding-top: 0;
    }
    
    main {
        padding-top: 0;
    }
}

/* Crypto donation containers */
.donation-addresses {
    background: linear-gradient(135deg, #f8f8f8, #efefef);
    padding: 4rem 3rem;
}

.crypto-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.crypto-card {
    padding: 2rem;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.crypto-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--heavy-shadow);
}

.crypto-card:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, 
        var(--accent-color) 25%, 
        var(--white-color) 25%, 
        var(--white-color) 50%, 
        var(--secondary-color) 50%, 
        var(--secondary-color) 75%, 
        var(--primary-color) 75%);
    border-radius: 0 0 12px 12px;
}

.crypto-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 2;
}

.crypto-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.recommended-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 0 12px 0 12px;
}

.crypto-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.crypto-card.featured .crypto-icon {
    color: var(--primary-color);
}

.address {
    background-color: #f0f0f0;
    padding: 1rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
    margin: 1.5rem 0;
    text-align: left;
}

.copy-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.copy-btn i {
    margin-left: 0.5rem;
}

.copy-btn:hover {
    background-color: #005528;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.copy-btn.primary {
    background-color: var(--primary-color);
}

.copy-btn.primary:hover {
    background-color: #b51929;
}

.crypto-note {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-top: 1rem;
}

.donation-footer {
    margin-top: 3rem;
    text-align: center;
}

.donation-pledge {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.donation-verification {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Footer */
footer {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 4rem 2rem 2rem;
    position: relative;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, 
        var(--accent-color) 25%, 
        var(--white-color) 25%, 
        var(--white-color) 50%, 
        var(--secondary-color) 50%, 
        var(--secondary-color) 75%, 
        var(--primary-color) 75%);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-message {
    flex: 1;
    min-width: 300px;
    text-align: left;
    padding-right: 2rem;
}

.footer-message h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-security {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.disclaimer {
    color: #aaa;
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.disclaimer i, .security-note i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.security-note {
    color: #aaa;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

/* Funding Purpose Section */
.funding-purpose {
    background: linear-gradient(135deg, #111, #222);
    border-left: 5px solid var(--secondary-color);
    padding: 4rem 3rem;
}

.purpose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.purpose-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.purpose-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.purpose-item.highlight {
    border: 1px solid rgba(212, 32, 48, 0.3);
    background: rgba(212, 32, 48, 0.1);
}

.purpose-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.purpose-item.highlight .purpose-icon {
    color: var(--primary-color);
}

.purpose-item h3 {
    color: var(--white-color);
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.purpose-item.highlight h3 {
    border-bottom-color: rgba(212, 32, 48, 0.3);
}

.purpose-item ul {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
}

.purpose-item li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 5px;
}

.purpose-item li:before {
    content: '✓';
    color: var(--secondary-color);
    margin-right: 8px;
    font-weight: bold;
}

.purpose-item.highlight li:before {
    color: var(--primary-color);
}

.emphasis {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
    color: white;
    margin: 2.5rem 0;
    padding: 1.5rem;
    background-color: rgba(212, 32, 48, 0.15);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 4px 4px 0;
}

.quote-box {
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 2.5rem;
    margin: 2.5rem 0 1rem;
    border-radius: 8px;
    text-align: center;
    position: relative;
}

.quote-box p {
    font-size: 1.4rem;
    font-style: italic;
    margin: 0;
    line-height: 1.6;
}

.quote-box:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, 
        var(--primary-color),
        var(--secondary-color));
    border-radius: 4px 0 0 4px;
}

/* Crypto Info Section */
.crypto-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.crypto-benefit-item {
    display: flex;
    align-items: flex-start;
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.crypto-benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--heavy-shadow);
}

.benefit-icon {
    background-color: var(--secondary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.benefit-content {
    flex: 1;
}

.benefit-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.benefit-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--gray-color);
}

/* Warning Box */
.warning {
    background-color: #fff8ea;
    border-left: 4px solid #ffb74d;
    padding: 1.2rem;
    margin: 1.5rem 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    border-radius: 0 5px 5px 0;
}

.warning i {
    color: #f57c00;
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* Security Tips Section */
.security-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.security-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.security-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.security-icon {
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.security-content {
    flex: 1;
}

.security-content h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.security-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Quote Section */
.quote-section {
    background-color: var(--accent-color);
    color: white;
    padding: 5rem 3rem;
    text-align: center;
    border-left: 8px solid var(--primary-color);
    border-right: 8px solid var(--secondary-color);
    margin: 5rem 0;
}

/* FAQ Section */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 25px;
}

.faq-item h3:before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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