/* Root Variables - Brand Colors (ANR RED THEME) */
:root {
    --primary-red: #E3001B;
    /* ANR / Colorado Red - Dominant */
    --primary-blue: #0A1E40;
    /* Navy Blue - Secondary (Text, Footer) */
    --accent-gold: #C5A059;
    /* Gold - Prestige, details */
    --off-white: #F9F9F9;
    --text-dark: #222;
    --text-lead: #555;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    /* Subtle Diagonal Pattern to replace raw white */
    background-color: #f8f9fa;
    background-image: repeating-linear-gradient(45deg,
            rgba(0, 0, 0, 0.02) 0px,
            rgba(0, 0, 0, 0.02) 1px,
            transparent 1px,
            transparent 10px);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    text-transform: uppercase;
}

p {
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-red);
    color: white;
    padding: 15px 30px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid var(--primary-red);
}

.btn-primary:hover {
    background-color: white;
    color: var(--primary-red);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--primary-blue);
    color: white;
    padding: 12px 25px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--primary-red);
}

a.btn-nav-donate {
    background-color: white;
    color: var(--primary-red) !important;
    padding: 10px 25px;
    font-weight: 800;
    /* Extra bold */
    text-transform: uppercase;
    border-radius: 0;
    /* Square/Rectangle as requested */
    border: 2px solid white;
    /* Ensure white border */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

a.btn-nav-donate:hover {
    background-color: var(--primary-red);
    color: white !important;
    border-color: white;
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    background-color: var(--primary-red);
    padding: 20px 0;
    position: relative;
    /* RELATIVE to avoid overlap */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    /* Changed to white for contrast on red navbar */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
    opacity: 0.9;
}

.logo-flag {
    margin-top: 5px;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right,
            #D52B1E 0%, #D52B1E 33.3%,
            #FFFFFF 33.3%, #FFFFFF 66.6%,
            #0038A8 66.6%, #0038A8 100%);
    border-radius: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    /* White text */
}

.nav-links li a:hover {
    color: var(--primary-blue);
    /* Blue on hover */
}

/* Hero Section */
.hero {
    /* SPLIT LAYOUT: Image on Right, Text on Left */
    /* Gradient goes from Red (Left) to transparent/blue (Right) */
    background: url('NC FOTO 1.jpg') no-repeat right 20%/cover;
    background-color: var(--primary-red);
    height: 85vh;
    /* Large hero */
    display: flex;
    align-items: center;
    color: white;
    text-align: left;
    margin-top: 0;
    /* Image optimization for better quality */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.hero-content {
    max-width: 600px;
    /* Limit width so it stays on the LEFT side */
    padding-right: 20px;
    margin-left: 0;
    /* Align to left container edge */
}

.hero h1 {
    font-size: 3.5rem;
    /* Reduced from 5rem (-30%) */
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
    letter-spacing: -1.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.1rem;
    /* Reduced from 1.5rem (-30% approx) */
    margin-bottom: 40px;
    font-weight: 300;
    color: #fff;
    border-left: 3px solid white;
    padding-left: 15px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background-color: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.hero .btn-primary:hover {
    background-color: white;
    color: var(--primary-red);
    border-color: white;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: white;
    padding: 15px 30px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid #25D366;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: white;
    color: #25D366;
    border-color: white;
}

.btn-whatsapp i {
    font-size: 1.2rem;
}


/* About Section */
.about-section {
    padding: 100px 0;
    background-color: white;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    /* Align to top */
}

/* Instagram Feed Styles */
.instagram-feed-container {
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.instagram-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.instagram-header i {
    font-size: 1.5rem;
    color: #E1306C;
    /* Instagram Color */
    margin-right: 10px;
}

.instagram-header span {
    font-weight: bold;
    font-size: 1.1rem;
    flex-grow: 1;
}

.follow-btn {
    background-color: var(--primary-red);
    color: white;
    padding: 5px 15px;
    font-size: 0.9rem;
    border-radius: 4px;
    font-weight: 600;
}

.follow-btn:hover {
    background-color: var(--primary-blue);
    color: white;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.insta-post {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    /* Square Aspect Ratio */
    overflow: hidden;
    border-radius: 4px;
    display: block;
}

.insta-post img,
.insta-post video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.insta-post:hover img,
.insta-post:hover video {
    transform: scale(1.1);
}

.insta-post .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: 0.3s;
    font-weight: bold;
}

.insta-post:hover .overlay {
    opacity: 1;
}

.insta-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0 !important;
}

.about-text h2 {
    color: var(--primary-red);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.about-text h3 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.about-text p {
    color: var(--text-lead);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* Pillars / Vision */
.vision-section {
    padding: 100px 0;
    background-color: var(--primary-red);
    text-align: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    color: white;
}

.news-title {
    color: var(--primary-blue);
}

/* Carousel Styles */
.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    /* More breathing room for buttons */
}

.carousel-container {
    overflow: hidden;
    padding: 30px 0;
    /* Space for hover effects */
}

.carousel-track {
    display: flex;
    gap: 30px;
    /* Standard gap */
    transition: transform 0.5s ease-in-out;
    /* width is dynamic via flex */
}

.carousel-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 5px solid var(--primary-blue);
    /* Strong official header */
    border-radius: 4px;
    /* More formal, less rounded */
    padding: 35px 30px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Subtle shadow initially */
    transition: all 0.3s ease;
    flex: 0 0 calc((100% - 60px) / 3);
    /* Symmetric 3 items */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    /* Allow content to dictate, or 100% to match */
    min-height: 320px;
    /* Uniform height look */
}

.carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    /* Elegant lift */
    border-top-color: var(--primary-red);
    /* Active state color */
}

/* Gold Accent Line */
.carousel-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.carousel-card:hover::after {
    transform: scaleX(1);
}

.carousel-card .icon {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-gold);
    /* Gold border for icon */
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.carousel-card:hover .icon {
    background: var(--primary-blue);
    color: var(--accent-gold);
    /* Gold icon on blue bg */
    border-color: var(--primary-blue);
    transform: scale(1.1);
    /* Subtle scale only */
}

.carousel-card h3 {
    font-family: var(--font-heading);
    /* Serif font */
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.carousel-card p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 1px solid #eee;
    color: var(--primary-blue);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary-blue);
    color: var(--accent-gold);
    border-color: var(--primary-blue);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .carousel-card {
        flex: 0 0 calc((100% - 30px) / 2);
        /* 2 items */
    }
}

@media (max-width: 600px) {
    .carousel-wrapper {
        padding: 0 10px;
    }

    .carousel-btn {
        display: none;
    }

    .carousel-container {
        padding-top: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .carousel-track {
        gap: 15px;
    }

    .carousel-card {
        flex: 0 0 85vw;
        scroll-snap-align: center;
        margin-bottom: 15px;
    }
}

/* News Section */
.news-section {
    padding: 100px 0;
    background-color: transparent;
    /* Allow body pattern to show */
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column for now since it's one big featured item */
    gap: 40px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Video larger than text */
    gap: 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.news-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-content h3 {
    color: var(--primary-red);
    font-size: 1.8rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.news-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.news-body p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.final-quote {
    font-style: italic;
    color: var(--primary-blue) !important;
    font-weight: 600;
    border-left: 3px solid var(--primary-red);
    padding-left: 15px;
}

@media (max-width: 900px) {
    .news-card {
        grid-template-columns: 1fr;
    }

    .video-wrapper {
        padding-bottom: 56.25%;
        /* Still 16:9 but relative to card width */
    }
}

/* Quote Section */
.quote-section {
    background-color: var(--primary-blue);
    color: white;
    padding: 80px 0;
    text-align: center;
}

blockquote {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}

/* Newsletter */
.newsletter-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-red);
    color: white;
}

.newsletter-section h2 {
    color: white;
    margin-bottom: 10px;
}

.newsletter-form {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.newsletter-form input {
    padding: 15px;
    width: 300px;
    border: none;
    font-family: var(--font-body);
}

/* Footer Full Width Fix */
footer {
    background: var(--primary-blue);
    border-top: 5px solid var(--primary-red);
    /* Official trim */
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 20px;
    background: transparent;
    color: white;
    /* Cascade white text */
}

.footer-left p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-left h4 {
    font-size: 1.5rem;
    color: white;
    /* Ensure heading is white */
}

.footer-socials a {
    font-size: 1.5rem;
    margin-left: 20px;
    color: white;
    /* Ensure icons are white */
}

.footer-socials a:hover {
    color: var(--primary-red);
}

/* Mobile Responsive */
@media (max-width: 768px) {

    /* Navbar Mobile Layout */
    .navbar .container {
        flex-direction: column;
        align-items: center;
    }

    .logo-container {
        margin-bottom: 15px;
        align-items: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    /* Hero Mobile Layout */
    .hero {
        /* User requested to remove the red background/overlay */
        background-image: url('NC FOTO 1.jpg');
        background-position: center top;
        background-size: cover;
        text-align: center;
        /* Push text down to avoid covering the face (approx 40% of screen height) */
        padding-top: 45vh;
        padding-bottom: 50px;
        align-items: flex-start;
        /* Align text block to start of the padded area */
        height: auto;
    }

    .hero-content {
        max-width: 100%;
        padding-right: 0;
        /* Ensure text is readable without the red background */
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
}

/* News Grid Styles */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.news-image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #000;
}

.news-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
    pointer-events: none;
}

.news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--primary-blue);
}

.news-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.small-btn {
    padding: 8px 15px;
    font-size: 0.8rem;
    align-self: flex-start;
    margin-top: auto;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    /* WhatsApp Green */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    /* Darker WhatsApp Green */
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-float i {
    color: white;
}

/* Mobile Responsive for WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
}