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

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--light-color);
    color: var(--text-dark);
    line-height: 1.5;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===============================
   Headings
================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark-alt);
    font-weight: 600;
    margin-bottom: 15px;
}

h2.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    color: var(--text-dark-alt);
}

/* ===============================
   Section Styles
================================= */
.faq-section,
.team-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

/* ===============================
   FAQ Section
================================= */
.faq-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-color);
    border: none;
    margin-bottom: 15px;
}

.faq-item .card-header {
    background-color: var(--light-color);
    border-bottom: none;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.faq-item .card-header.active-faq {
    border-left: 4px solid var(--primary-color);
}

.faq-item .btn-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    width: 100%;
    text-align: left;
    padding: 0;
}

.faq-item .btn-link:hover,
.faq-item .btn-link:focus {
    text-decoration: none;
    color: var(--primary-color);
}

.faq-item .card-body {
    padding: 20px;
    color: var(--input-gray);
    line-height: 1.6;
}

.faq-item .collapse {
    transition: all 0.3s ease-out;
}

/* ===============================
   Team Section
================================= */
.section-subtitle {
    font-size: 1.1rem;
    color: var(--input-gray);
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.team-card {
    position: relative;
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-dark);
}

/* Team Image Section */
.team-img {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.team-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.team-card:hover .team-img img {
    transform: scale(1.05);
}

/* Full Dark Overlay with Centered Content */
.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 2;
}

.team-card:hover .team-overlay {
    opacity: 1;
    visibility: visible;
}

/* Overlay Content */
.overlay-content {
    color: #fff;
    padding: 20px;
}

.overlay-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.overlay-content p {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #ddd;
}

.overlay-content i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* Social Icons Inside Overlay (Optional) */
.team-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
}

.contact-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Team Info (Below Image) */
.team-info {
    padding: 15px;
    text-align: center;
}

.team-info h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.team-info .designation {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

/* Contact Info */
.team-contact-info {
    text-align: left;
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.team-contact-info p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.team-contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.member-bio {
    font-style: italic;
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 8px;
}

/* ===============================
   Buttons
================================= */
.btn-primary {
    background-color: var(--btn-primary-bg);
    border: 1px solid var(--btn-primary-border);
    color: var(--btn-primary-text);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--hover-primary);
    border-color: var(--hover-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-light);
}

.btn-secondary {
    background-color: var(--btn-secondary-bg);
    border: 1px solid var(--btn-secondary-border);
    color: var(--btn-secondary-text);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--button-hover);
    border-color: var(--button-hover);
}

.btn-outline-primary {
    background-color: transparent;
    border: 1px solid var(--btn-outline-primary-border);
    color: var(--btn-outline-primary-text);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--btn-outline-primary-border);
    color: var(--light-color);
}

/* ===============================
   Form Elements
================================= */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    color: var(--input-text-dark);
    background-color: var(--light-color);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px var(--shadow-light);
}

.form-control::placeholder {
    color: var(--placeholder-gray);
}

/* ===============================
   Footer
================================= */
.footer {
    background-color: var(--footer-dark);
    color: var(--light-color);
    text-align: center;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer a:hover {
    color: var(--hover-primary);
}

/* ===============================
   Responsive Design
================================= */
@media (max-width: 767px) {
    .faq-section, .team-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .team-img img {
        height: 250px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}
