/* =====================================================
   ORGANIZERS PYRAMID SECTION STYLES
   Matches the website's crimson theme (#dc143c)
   ===================================================== */

/* Section Background */
.organizers-section {
    background-color: #f5f5f5;
    padding: 70px 0 80px;
}

/* Pyramid Container */
.pyramid-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Pyramid Levels */
.pyramid-level {
    margin-bottom: 40px;
    text-align: center;
}

/* Level Headings */
.level-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: #dc143c;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

.level-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #dc143c;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Organizers Row */
.organizers-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

/* =====================================================
   ORGANIZER CARDS WITH IMAGES
   ===================================================== */

.organizer-card {
    text-align: center;
    min-width: 150px;
    max-width: 200px;
}

.organizer-card.with-image {
    padding: 15px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.organizer-card.with-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.15);
}

/* Organizer Image */
.organizer-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #dc143c;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.2);
}

.organizer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.organizer-card:hover .organizer-image img {
    transform: scale(1.05);
}

/* Small Image (for committee heads) */
.organizer-image.small {
    width: 80px;
    height: 80px;
    border-width: 3px;
}

/* Organizer Name */
.organizer-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #141f23;
    margin-bottom: 5px;
    line-height: 1.3;
}

/* Designation below name */
.organizer-designation {
    font-size: 0.8rem;
    color: #6d7a83;
    font-weight: 400;
    line-height: 1.4;
}

/* Designation above name (for core team) */
.organizer-designation-top {
    font-size: 0.75rem;
    color: #dc143c;
    font-weight: 600;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   COMMITTEE SECTIONS (Full Width Single Line)
   ===================================================== */

.committee-section {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #dc143c;
}

.committee-title-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc143c;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Committee Head Layouts */
.committee-head-single,
.committee-head-dual,
.committee-head-triple {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.committee-head-single .organizer-card,
.committee-head-dual .organizer-card,
.committee-head-triple .organizer-card {
    flex: 0 0 auto;
}

.members-label {
    font-size: 1rem;
    font-weight: 600;
    color: #dc143c;
    margin: 25px 0 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px dashed rgba(220, 20, 60, 0.3);
    padding-top: 20px;
}

/* Centered Row for Small Member Sections */
.members-row-centered {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

/* =====================================================
   LEVEL-SPECIFIC STYLES (Pyramid Effect)
   ===================================================== */

/* Level 1: Leading Light - Top, single person */
.level-1 {
    margin-bottom: 35px;
}

.level-1 .organizer-card {
    max-width: 220px;
}

.level-1 .organizer-image {
    width: 140px;
    height: 140px;
    border-width: 5px;
}

.level-1 .organizer-name {
    font-size: 1.1rem;
}

/* Level 2 & 3: Chief Patrons & Convenors */
.level-2 .organizers-row,
.level-3 .organizers-row {
    gap: 60px;
}

/* Level 4: Conference Advisors - Same spacing as Convenors */
.level-4 .organizers-row {
    gap: 60px;
}

/* Level 5: Core Team */
.level-5 {
    margin-bottom: 45px;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.05) 0%, rgba(220, 20, 60, 0.02) 100%);
    border-radius: 20px;
}

/* Level 6+: Committee Sections */
.level-6,
.level-7,
.level-8,
.level-9,
.level-10,
.level-11,
.level-12 {
    margin-bottom: 30px;
}

/* =====================================================
   OWL CAROUSEL CUSTOMIZATION
   ===================================================== */

.organizers-section .owl-carousel .owl-nav button.owl-prev,
.organizers-section .owl-carousel .owl-nav button.owl-next {
    background: #dc143c !important;
    color: #ffffff !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 40px;
    transition: all 0.3s ease;
}

.organizers-section .owl-carousel .owl-nav button.owl-prev:hover,
.organizers-section .owl-carousel .owl-nav button.owl-next:hover {
    background: #435469 !important;
}

.organizers-section .owl-carousel .owl-nav button.owl-prev {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
}

.organizers-section .owl-carousel .owl-nav button.owl-next {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
}

.organizers-section .owl-carousel .owl-dots {
    margin-top: 20px;
}

.organizers-section .owl-carousel .owl-dots .owl-dot span {
    background: rgba(220, 20, 60, 0.3);
    width: 12px;
    height: 12px;
}

.organizers-section .owl-carousel .owl-dots .owl-dot.active span,
.organizers-section .owl-carousel .owl-dots .owl-dot:hover span {
    background: #dc143c;
}

/* Committee carousel specific positioning */
.committee-carousel {
    position: relative;
    padding: 0 30px;
}

.committee-carousel .owl-nav button.owl-prev {
    left: -10px;
}

.committee-carousel .owl-nav button.owl-next {
    right: -10px;
}

/* =====================================================
   CENTERED CAROUSEL - For fewer items
   ===================================================== */

.owl-carousel.owl-centered .owl-stage {
    display: flex;
    justify-content: center;
}

.owl-carousel.owl-centered .owl-stage-outer {
    display: flex;
    justify-content: center;
}

/* Force center alignment when items don't fill the row */
.committee-carousel .owl-stage {
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 992px) {
    .level-heading {
        font-size: 1.5rem;
    }

    .organizers-row {
        gap: 25px;
    }

    .level-2 .organizers-row,
    .level-3 .organizers-row,
    .level-4 .organizers-row {
        gap: 30px;
    }

    .committee-section {
        padding: 25px 20px;
    }

    .organizers-section .owl-carousel .owl-nav button.owl-prev {
        left: 0;
    }

    .organizers-section .owl-carousel .owl-nav button.owl-next {
        right: 0;
    }

    .committee-carousel .owl-nav button.owl-prev {
        left: 0;
    }

    .committee-carousel .owl-nav button.owl-next {
        right: 0;
    }
}

@media (max-width: 768px) {
    .organizers-section {
        padding: 50px 0 60px;
    }

    .level-heading {
        font-size: 1.3rem;
    }

    .organizer-card {
        min-width: 140px;
        max-width: 170px;
    }

    .organizer-image {
        width: 100px;
        height: 100px;
    }

    .organizer-name {
        font-size: 0.85rem;
    }

    .committee-title-main {
        font-size: 1.2rem;
    }

    .committee-head-dual,
    .committee-head-triple {
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .organizers-section {
        padding: 40px 15px 50px;
    }

    .level-heading {
        font-size: 1.1rem;
    }

    .organizers-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .organizer-card {
        max-width: 200px;
        width: 100%;
    }

    .level-1 .organizer-image {
        width: 120px;
        height: 120px;
    }

    .committee-head-dual,
    .committee-head-triple {
        flex-direction: column;
        gap: 15px;
    }

    .committee-carousel {
        padding: 0 15px;
    }
}