/* General Section Styling */
section {
    padding: 4rem 2rem;
    text-align: center;
}



/* Hero Section */
.hero {
    position: relative;
    background: url(../../images/23.jpg);
    color: var(--light-text);
    background-size: cover;
    background-position: center;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons a {
    margin: 0 0.5rem;
}

/* Intro, About, Mission Sections */
.intro, .about, .mission {
    background-color: var(--dark-bg);
}

/* Pillars Section */
.pillars {
    background-color: #1a1a1a;
}

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

.pillar {
    background-color: var(--dark-bg);
    padding: 2rem;
    border-radius: 10px;
}

/* Features Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
}

/* CTA Section */
.cta, .cta-section {
    background-color: var(--accent);
    color: var(--dark-bg);
}

/* Articles Section */
.articles {
    background-color: #1a1a1a;
}

.articles-container {
    position: relative;
}

.articles-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.articles-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.article-card {
    flex: 0 0 300px;
    background-color: var(--dark-bg);
    border-radius: 10px;
    padding: 1.5rem;
    scroll-snap-align: center;
}

.article-card span {
        display: flex;
        align-items: center;
        gap: 8px;
    }

/* Clamp long article content to 3 lines */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    /* Fallback for non-webkit browsers */
    display: block;
    max-height: 4.5em; /* approx 3 lines at 1.5em line-height */
    line-height: 1.5em;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent);
    color: var(--dark-bg);
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1;
}

.slider-btn.left {
    left: 0;
}

.slider-btn.right {
    right: 0;
}

.slider-btn.right:hover, .slider-btn.left:hover {
  background: white;
}

/* Button Styles */
.btn-primary {
    background: var(--accent);
    color: var(--dark-bg);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--light-text);
}

.btn-primary-ch {
    background: var(--dark-bg);
    color: var(--accent);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary-ch:hover {
    background: var(--light-text);
}

.btn-secondary {
    background: transparent;
    color: var(--light-text);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    border: 1px solid var(--light-text);
    display: inline-block;
    font-weight: bold;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: var(--light-text);
    color: var(--dark-bg);
    cursor: pointer;
}

/* Responsive */
@media(max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    section {
        padding: 2rem 1rem;
    }
}

.faq {
    max-width: 1000px;
    margin: auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: black;
    background: url(../../images/22.jpg);
    background-position: center;
    background-size: cover;
}

.faq label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: black;
}

.faq input[type="text"], .faq input[type="email"], .faq textarea {
    width: 80%;
    height: 40px;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.faq textarea {
    height: 100px;
}

.faq button[type="submit"] {
    background-color: #4CAF50;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.faq button[type="submit"]:hover {
    background-color: #3e8e41;
}
