/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3c8a2e;
    --secondary-color: #164a0b;
    --accent-color: #5eb04f;
    --light-color: #f9f9f9;
    --dark-color: #333;
    --gray-color: #888;
    --light-gray: #f4f4f4;
    --border-color: #ddd;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    margin-top: 0;
    padding-top: 80px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    margin: 40px 0;
}

.section-spacing {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.underline {
    height: 4px;
    width: 80px;
    background-color: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: none;
    font-size: 1rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: block;
}

.header-logo {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.header-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 20px !important;
    border-radius: var(--border-radius);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-button::after {
    display: none;
}

#mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

#mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-color);
    color: white;
    padding: 100px 0;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: 50px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    max-width: 1000px;
    margin: -50px auto 60px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background-color: var(--dark-color);
    z-index: 10;
}

.slide {
    display: none;
    text-align: center;
    padding: 0;
    transition: opacity 0.8s ease;
    position: relative;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.1rem;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 24px;
    font-weight: bold;
    padding: 15px;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.dots-container {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background-color: white;
}

.fade {
    animation: fadeEffect 1.5s;
}

@keyframes fadeEffect {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

/* Mission Section */
.mission {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.mission p {
    font-size: 1.2rem;
    color: var(--dark-color);
    line-height: 1.8;
}

/* Comfort Message */
.comfort-message {
    background-color: var(--light-gray);
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

.comfort-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.tagline {
    font-size: 2rem;
    font-style: italic;
    color: var(--dark-color);
    margin-top: 20px;
    font-weight: 300;
}

/* Product Description */
.product-description {
    padding: 60px 20px;
}

.product-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.product-content {
    flex: 1;
}

.product-image {
    flex: 1;
    text-align: center;
}

.product-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-image img:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-description p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.feature-list {
    list-style: none;
    margin: 20px 0 30px;
}

.feature-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    font-size: 1.05rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Partners Section */
.charitable-partners {
    background-color: var(--light-gray);
    padding: 60px 20px;
    text-align: center;
}

.partners-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.partner-card {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 220px;
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.partner-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.partner-card p {
    font-weight: 600;
    color: var(--dark-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo-img {
    width: 150px;
    margin-bottom: 15px;
    background-color: whitesmoke;
}

.footer-links,
.footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #ccc;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .product-flex {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    header {
        padding: 10px 0;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        background-color: white;
        padding: 20px;
        transition: var(--transition);
        z-index: 999;
        gap: 20px;
    }

    .nav-links.active {
        left: 0;
    }

    #mobile-menu-btn {
        display: block;
    }

    #mobile-menu-btn.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    #mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu-btn.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .hero-section {
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .slide img {
        height: 350px;
    }

    .section-spacing {
        padding: 40px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .header-logo {
        height: 40px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .tagline {
        font-size: 1.5rem;
    }

    .slide img {
        height: 250px;
    }

    .caption {
        padding: 10px;
        font-size: 0.9rem;
    }

    .prev,
    .next {
        padding: 10px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .partner-card {
        width: 100%;
        max-width: 220px;
    }
}

.directory-section {
    background-color: var(--light-color);
    padding: 60px 0;
}

.directory-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.directory-controls .btn {
    min-width: 180px;
}

.arrow-down {
    font-size: 0.8rem;
    margin-left: 5px;
}

.search-box {
    position: relative;
    width: 250px;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(60, 138, 46, 0.2);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
    font-size: 1rem;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.directory-item {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.directory-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.directory-logo {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}

/* Media queries for responsive design */
@media (max-width: 992px) {
    .directory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .directory-grid {
        grid-template-columns: 1fr;
    }

    .directory-controls {
        flex-direction: column;
        gap: 15px;
    }

    .search-box {
        width: 100%;
    }
}