/*
================================================================================
  Custom CSS for BBB India Website
  Version: Final
================================================================================
*/

/*
==========================================
  1. General & Global Styles
==========================================
*/
.page-title-big-typography h1 {
    line-height: 1.2;
}

/* Header & Navigation */
.navbar-brand img {
    max-height: 40px;
}
.navbar .navbar-nav .nav-link {
    text-transform: none;
    font-weight: 500;
}


/*
==========================================
  2. Component Styles
==========================================
*/

/* Chapter Spotlight Section */
.new-chapter-spotlight-section {
    padding-top: 80px;
    padding-bottom: 80px;
}
.custom-thumbnail-box {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    text-align: left;
    transition: box-shadow 0.3s ease-in-out;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}
.custom-thumbnail-box:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}
.custom-thumbnail-box .image-box {
    position: relative; 
    margin-bottom: 20px;
}
.custom-thumbnail-box .image-box img {
    width: 100%;
    border-radius: 6px;
}
.custom-thumbnail-box .caption-box h5 {
    transition: color 0.3s ease-in-out;
}
.custom-thumbnail-box:hover .caption-box h5 {
    color: #d87724 !important; /* Theme base color */
}
.spotlight-category {
    display: block;
    font-size: 14px;
    color: #828282; /* Medium gray for subtlety */
    margin-bottom: 8px;
    font-weight: 500;
}

/* Forms (Find Chapter, Apply to Visit) */
.find-a-chapter-section, .apply-to-visit-section {
    padding-top: 40px !important;
    padding-bottom: 20px !important;
    background-color: #f8f9fa;
}
.find-chapter-form, .apply-visit-form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.find-chapter-form .form-control,
.apply-visit-form .form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 10px 15px;
    height: 48px;
}
.apply-visit-form .form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}
.find-a-chapter-section .btn-base-color .btn-text,
.apply-to-visit-section .btn-base-color .btn-text,
.event-registration-form .btn-base-color .btn-text {
    color: #ffffff !important;
}
.find-a-chapter-section .btn-base-color:hover,
.apply-to-visit-section .btn-base-color:hover,
.event-registration-form .btn-base-color:hover {
    background-color: #b0601e !important; /* Darker shade of base color */
    border-color: #b0601e !important;
}
.find-a-chapter-section .btn-base-color:hover .btn-text,
.apply-to-visit-section .btn-base-color:hover .btn-text,
.event-registration-form .btn-base-color:hover .btn-text{
    color: #ffffff !important;
}

/* Simple Accordion Styles */
.accordion-style-simple .accordion-item {
    background-color: #fff;
    border-radius: 5px !important;
    border: 1px solid #dee2e6;
    margin-bottom: 10px;
    box-shadow: none;
}
.accordion-style-simple .accordion-button {
    font-weight: 600;
    color: var(--dark-gray);
    background-color: #fff;
    box-shadow: none;
    padding: 12px 20px;
}
.accordion-style-simple .accordion-button:not(.collapsed) {
    background-color: var(--base-color);
    color: #fff;
}
 .accordion-style-simple .accordion-button::after {
    background-size: 1rem;
}
.accordion-style-simple .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}
.accordion-style-simple .accordion-body {
    background-color: #fff;
    padding: 15px 20px;
}


/*
==========================================
  3. Page-Specific Styles
==========================================
*/

/* About Us - Team Directory */
.team-directory-card {
    text-align: center;
    margin-bottom: 30px;
}
.team-directory-card img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid #f0f0f0;
    margin-bottom: 15px;
    object-fit: cover;
    transition: all 0.3s ease-in-out;
}
.team-directory-card:hover img {
    border-color: var(--base-color);
    transform: scale(1.05);
}
.team-directory-card .member-name {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 18px;
    margin: 0;
}
.team-directory-card .member-title {
    font-size: 15px;
    color: var(--medium-gray);
}

/* Community Impact - General Cards & Info Boxes */
.impact-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    height: 100%;
}
.impact-card img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 15px;
}
.info-box {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

/* Community Impact - Impact Reports Section */
.info-box-report {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.info-box-report h5 {
    margin-bottom: 15px;
    font-weight: 700;
}
.info-box-report p {
    flex-grow: 1;
    color: #6c757d;
}
.info-box-report .btn {
    margin-top: 20px;
    align-self: flex-start;
}

/* Community Impact - Journey Timeline */
.timeline-container-final {
    width: 100%;
    position: relative;
    padding: 20px 0;
}

/* Mobile styles first */
.horizontal-timeline-final { display: none; }
.vertical-timeline-final {
    position: relative;
    padding-left: 25px;
    margin-left: 10px;
}
.vertical-timeline-final::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: #dee2e6;
}
.vertical-timeline-final .timeline-event-final {
    position: relative;
    margin-bottom: 35px;
}
.vertical-timeline-final .timeline-event-final:last-child {
    margin-bottom: 0;
}
.vertical-timeline-final .marker-final {
    position: absolute;
    left: -11px;
    top: 0;
    transform: translateX(-50%);
}
.vertical-timeline-final .dot {
    width: 22px;
    height: 22px;
    background-color: #fff;
    border: 5px solid var(--event-color);
    border-radius: 50%;
}
.vertical-timeline-final .event-card-final {
    padding-left: 15px;
}
.vertical-timeline-final .year, 
.vertical-timeline-final .big-text,
.vertical-timeline-final .event-title-final,
.vertical-timeline-final .event-desc-final {
    text-align: left;
}
.vertical-timeline-final .year, 
.vertical-timeline-final .big-text {
    font-weight: 600;
    font-size: 1.1em;
    color: #495057;
    margin-bottom: 4px;
}
.vertical-timeline-final .big-text {
    color: var(--event-color);
}
.vertical-timeline-final .event-title-final {
    font-size: 1.25em;
    color: var(--event-color);
    font-weight: 700;
}
.vertical-timeline-final .event-desc-final {
    margin-top: 8px;
    color: #6c757d;
}

/* Desktop styles */
@media (min-width: 992px) {
  .vertical-timeline-final { display: none; }
  .horizontal-timeline-final { 
    display: block;
    position: relative;
  }
  .timeline-top-row {
    display: flex;
    justify-content: space-around;
    position: relative;
    padding: 20px 0;
    margin-bottom: 40px;
  }
  .timeline-top-row::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 12%;
    right: 12%;
    height: 2px;
    background-color: #dee2e6;
    transform: translateY(-50%);
  }
  .timeline-event-top {
    width: 25%;
    position: relative;
    text-align: center;
  }
  .timeline-event-top::after {
    content: '';
    position: absolute;
    top: 10px; /* Center of dot */
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px; /* Length of the line dropping down */
    background-color: #dee2e6;
  }
  .timeline-event-top .dot {
    width: 20px;
    height: 20px;
    border: 6px solid var(--event-color);
    background-color: #fff;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    z-index: 1; /* Ensure dot is above the lines */
  }
  .timeline-event-top .marker-label {
    position: absolute;
    top: -30px; /* Position label above the dot */
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    color: #343a40;
    white-space: nowrap;
  }
  .timeline-bottom-row {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
  }
  .timeline-event-bottom {
    width: 23%;
  }
  .event-card-final {
    text-align: left;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  }
  .event-title-final {
    background-color: var(--event-color);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1.1rem;
  }
  .event-desc-final {
    background-color: var(--event-color-light);
    padding: 20px;
    color: #334155;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
}

/* Join Us Page */
.faq-box {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 6px;
    height: 100%;
}
.form-section {
    padding: 50px;
    border-radius: 8px;
}
.video-placeholder {
    width: 100%;
    background: #000 url('https://placehold.co/800x450/000000/ffffff?text=Video+Placeholder') no-repeat center center;
    background-size: cover;
    height: 350px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Policy Pages */
.policy-content {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
}
.policy-content h5 {
    font-weight: 700;
    color: var(--dark-gray);
    margin-top: 30px;
    margin-bottom: 15px;
}
.policy-content p, .policy-content li {
    color: #666;
    line-height: 1.7;
}
.policy-content ul {
    list-style-type: none;
    padding-left: 20px;
}
.policy-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}
.policy-content ul li::before {
    content: "\f058"; /* Font Awesome check-circle icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--base-color);
    position: absolute;
    left: 0;
    top: 5px;
}


/*
==========================================
  4. Responsive Adjustments
==========================================
*/
@media (max-width: 767px) {
    .find-chapter-form .btn {
        width: 100%;
    }
}