/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Macondo&family=Oswald:wght@200..700&display=swap');

/* Colour Palette
    - Sky Blue #A3D5F7 - Main background, buttons, section headers
    - Soft Sage Green	#B5D8B2	- Accent panels, quotes, navigation highlights
    - Warm Beige	#F5EBDD- Card backgrounds, hero image overlay
    - Misty Lavender	#DDD6F3- Icon fills, modal backgrounds, section dividers
    - Cool Gray	#F0F0F0- Base layout, footer, forms
    - Display font in brown shade: #654321
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    line-height: 1.6;
    color: #654321;
}

/* Navigation Styles */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.logo {
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link,  
.navbar-nav .nav-link.active {
    color: #654321;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link.active {
    font-weight: bold;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-cta {
    display: inline-block;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.2);
    color: #654321;
    text-decoration: none;
    border-radius: 30px;
    border: 2px solid rgba(101, 67, 33, 0.3);
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.navbar-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #97C3FA 0%, #B5D8B2 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #654321;
    padding: 2rem;
    margin-top: 80px; /* Add top margin to account for fixed navbar */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content p {
    color: #654321;
    font-size: 1.1em;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
}

/* Main Body Sections - Combined styling for all content sections */
.common-issues-section,
.helpful-tips-section,
.support-section {
    position: relative;
    z-index: 10;
    background: #f8f9fa;
    padding: 50px 0; /* Reduced from 80px to 50px */
    display: block;
    text-align: center;
}

/* Common issues section specific overrides */
.common-issues-section, .support-section {
    min-height: 90vh;
    background: whitesmoke;
}

.support-content, 
.common-issues-content {
    text-align: center;
    padding: 2rem;
    color: #B5D8B2;
}

.support-title {
    color: #B5D8B2;
    margin-bottom: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 15;
}

.common-issues-section .container {
    position: relative;
    z-index: 15;
}

/* Section headings - unified styling for all section h2 elements */
.common-issues-section h2,
.helpful-tips-section h2,
.support-section h2 {
    color: #2d5a3d !important;
    font-weight: 700;
    margin-bottom: 1rem; /* Reduced from 2rem to 1rem */
    position: relative;
    z-index: 15;
    text-align: center;
}

/* Section lead paragraphs - unified styling for all section lead text */
.common-issues-section .lead,
.helpful-tips-section .lead,
.support-section .lead {
    color: #654321 !important;
    margin-bottom: 2rem; /* Reduced from 3rem to 2rem */
    position: relative;
    z-index: 15;
    text-align: center;
}

/* Cards Styling */
.common-issues-section .card {
    border: none !important;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 20;
    margin-bottom: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.common-issues-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.common-issues-section .card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    flex-shrink: 0;
}

.common-issues-section .card-body {
    padding: 1.5rem;
    background: white;
    border-radius: 0 0 15px 15px;
    position: relative;
    z-index: 25;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.common-issues-section .card-title {
    color: #2d5a3d;
    font-weight: 700;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.common-issues-section .card-text {
    color: #654321;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
}

/* Accordion styling - consolidated and cleaned up */
.common-issues-section .accordion {
    margin-top: auto;
}

.common-issues-section .accordion-button {
    background-color: #f8f9fa;
    color: #2d5a3d;
    font-weight: 600;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.common-issues-section .accordion-button:not(.collapsed) {
    background-color: #e9ecef;
    color: #2d5a3d;
    box-shadow: none;
}

.common-issues-section .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(45, 90, 61, 0.25);
    border-color: #2d5a3d;
}

.common-issues-section .accordion-body {
    padding: 1rem;
    background-color: #f8f9fa;
}

.common-issues-section .accordion-body ul {
    margin: 0;
    padding-left: 1.2rem;
}

.common-issues-section .accordion-body li {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Global accordion fixes - remove extra spacing */
.accordion-button {
    margin-bottom: 0 !important;
    min-height: 0 !important;
    padding: 0.5rem 1rem !important;
}

.accordion-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.accordion-body {
    padding: 0.5rem 1rem !important;
}

/* Video/iframe styling */
.video-container {
    max-width: 800px;
    position: relative;
    z-index: 15;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    overflow: hidden;
}

.ratio {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

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

/* Emergency Support Cards - Combined styling */
.emergency-card,
.urgent-support-card {
    padding: 1.5rem;
    border-radius: 10px;
    height: 100%;
    border: 2px solid;
}

.emergency-card {
    background: linear-gradient(135deg, #f8fdff 0%, #eef7ff 100%);
    border-color: #97C3FA;
}

.urgent-support-card {
    background: linear-gradient(135deg, #f8fdf9 0%, #eef9f0 100%);
    border-color: #B5D8B2;
}

.emergency-card h4,
.urgent-support-card h4 {
    color: #2d5a3d !important;
    text-align: center;
}

.emergency-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    justify-content: center;
}

.emergency-action {
    font-size: 1.1rem;
    color: #654321;
    margin-bottom: 0.5rem;
}

.emergency-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Support List Styling */
.support-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.support-list li {
    padding: 0.5rem 0;
    color: #654321;
}

/* Organization Links Styling */
.org-link {
    display: block;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.org-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.org-logo {
    width: 100%;
    height: 60px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.org-link:hover .org-logo {
    filter: grayscale(0%);
}

/* Footer Styling */
footer {
    background: linear-gradient(135deg, #654321 0%, #7d5530 100%) !important;
    color: white !important;
    border: none !important;
}

footer p {
    color: white !important;
    opacity: 0.9;
}

footer .social-links a {
    color: white !important;
    transition: all 0.3s ease;
    opacity: 0.8;
}

footer .social-links a:hover {
    color: #B5D8B2 !important;
    opacity: 1;
    transform: translateY(-2px);
}

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

@keyframes float {
    0%, 100% {
        transform: translateX(-10%);
    }
    50% {
        transform: translateX(10%);
    }
}

/* Media Queries */
/* Laptop and desktop screens - ensure adequate hero height */
@media (min-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 600px;
    }
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .hero {
        height: 40vh;
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-content {
        padding: 1.5rem;
        margin: 60px 1rem 0 1rem;
    }
    
    .video-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .common-issues-section,
    .helpful-tips-section,
    .support-section {
        padding-top: 40px;
    }
    
    .emergency-card,
    .urgent-support-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Gallery responsive styles */
    .gallery-item {
        width: 180px;
        height: 180px;
    }
    
    .gallery-container {
        gap: 0.8rem;
        padding: 0.8rem 0 1.5rem 0;
    }
    
    .gallery-overlay h5 {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }
    
    .gallery-overlay p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 1rem;
        margin-top: 60px;
    }
    
    .hero-cta,
    .navbar-cta {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .video-container {
        padding: 0;
    }
    
    /* Gallery responsive styles for small screens */
    .gallery-item {
        width: 160px;
        height: 160px;
    }
    
    .gallery-container {
        gap: 0.6rem;
        padding: 0.6rem 0 1.2rem 0;
    }
    
    .gallery-container::-webkit-scrollbar {
        height: 6px;
    }
    
    .gallery-overlay h5 {
        font-size: 0.9rem;
        margin-bottom: 0.1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.75rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 60vh;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* Horizontal Image Gallery Styles */
.horizontal-gallery {
    padding: 1rem 0;
}

.gallery-container {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0 2rem 0;
    scroll-behavior: smooth;
}

/* Custom scrollbar styling */
.gallery-container::-webkit-scrollbar {
    height: 8px;
}

.gallery-container::-webkit-scrollbar-track {
    background: rgba(181, 216, 178, 0.3);
    border-radius: 10px;
}

.gallery-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #97C3FA, #B5D8B2);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.gallery-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #B5D8B2, #97C3FA);
}

/* Gallery Items */
.gallery-item {
    flex: 0 0 auto;
    width: 200px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(135deg, #B5D8B2 0%, #97C3FA 100%);
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Different shades of green for each gallery item */
.gallery-green-1 { background: linear-gradient(135deg, #2d5a3d 0%, #4a7c59 100%); }
.gallery-green-2 { background: linear-gradient(135deg, #B5D8B2 0%, #9bc99b 100%); }
.gallery-green-3 { background: linear-gradient(135deg, #6b8e6b 0%, #8fb08f 100%); }
.gallery-green-4 { background: linear-gradient(135deg, #4f7942 0%, #6b9d58 100%); }
.gallery-green-5 { background: linear-gradient(135deg, #7fb069 0%, #a3d977 100%); }
.gallery-green-6 { background: linear-gradient(135deg, #355e3b 0%, #4f7942 100%); }
.gallery-green-7 { background: linear-gradient(135deg, #90c695 0%, #b8e6c1 100%); }
.gallery-green-8 { background: linear-gradient(135deg, #5d8233 0%, #7ba428 100%); }

/* Text Overlay Styles */
.gallery-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.gallery-overlay h5 {
    font-size: 1rem;
    font-weight: bold;
    margin: 0 0 0.3rem 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.gallery-overlay p {
    font-size: 0.85rem;
    margin: 0;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.gallery-item:hover .gallery-overlay {
    transform: translate(-50%, -50%) scale(1.05);
}



