/* Video Gallery Section Styles */
.video-gallery-section {
    background: #fff;
    padding: 60px 0;
}

.video-gallery-section .heading {
    font-size: 36px;
    margin-bottom: 10px;
}

.video-gallery-section .font-weight-light {
    font-weight: 300;
}

.video-gallery-section .divider-center {
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    margin: 15px auto;
}

.video-gallery-section .heading_space {
    margin-bottom: 40px;
}

.video-gallery-wrapper {
    position: relative;
    padding: 20px 0;
}

.video-gallery-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3c1114 0%, #3c1114 100%);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-gallery-scroll-btn:hover {
    background: linear-gradient(135deg, #3c1114 0%, #3c1114 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.video-gallery-scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.video-gallery-scroll-btn-left {
    left: -25px;
}

.video-gallery-scroll-btn-right {
    right: -25px;
}

.video-gallery-scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #ccc;
}

.video-gallery-scroll-btn:disabled:hover {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 4px 15px rgba(204, 204, 204, 0.3);
}

.video-gallery-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px;
    padding: 20px 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #3c1114;
}

.video-gallery-container::-webkit-scrollbar {
    height: 8px;
}

.video-gallery-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.video-gallery-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    border-radius: 10px;
}

.video-gallery-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff3838 100%);
}

.video-gallery-card {
    flex: 0 0 400px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-gallery-player {
    position: relative;
    width: 100%;
    background: #000;
}

.video-gallery-player video {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
}

.video-gallery-info {
    padding: 20px;
}

.video-gallery-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.video-gallery-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-gallery-scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .video-gallery-scroll-btn-left {
        left: -20px;
    }

    .video-gallery-scroll-btn-right {
        right: -20px;
    }

    .video-gallery-card {
        flex: 0 0 320px;
    }

    .video-gallery-player video {
        height: 180px;
    }

    .video-gallery-info {
        padding: 15px;
    }

    .video-gallery-title {
        font-size: 16px;
    }

    .video-gallery-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .video-gallery-scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .video-gallery-scroll-btn-left {
        left: -15px;
    }

    .video-gallery-scroll-btn-right {
        right: -15px;
    }

    .video-gallery-card {
        flex: 0 0 280px;
    }

    .video-gallery-player video {
        height: 157px;
    }
}

.video-testimonials-section {
    padding: 60px 0;
    background: #fff;
}

.video-testimonials-carousel {
    display: flex;
    gap: 20px;
}

.video-testimonial-item {
    width: 100%;
    display: flex;
    justify-content: center;
}

.video-testimonial-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-testimonial-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.testimonial-video {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    display: block;
}

.owl-carousel .owl-stage {
    display: flex !important;
}

.owl-carousel .owl-item {
    display: flex !important;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-testimonials-section {
        padding: 40px 0;
    }

    .video-testimonial-wrapper {
        max-width: 280px;
    }

    .testimonial-video {
        aspect-ratio: 9 / 16;
    }
}

@media (max-width: 576px) {
    .video-testimonials-section {
        padding: 30px 0;
    }

    .video-testimonial-wrapper {
        max-width: 100%;
        border-radius: 10px;
    }

    .video-testimonial-item {
        padding: 0 10px;
    }

    .owl-carousel .owl-nav {
        display: none;
    }
}

.youtube-section {
    padding: 60px 0;
    background: #fff;
}

.video-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ff6b6b #f1f1f1;
}

.video-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.video-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.video-scroll-container::-webkit-scrollbar-thumb {
    background: #ff6b6b;
    border-radius: 10px;
}

.video-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #ff5252;
}

.video-card {
    display: inline-block;
    width: 350px;
    margin-right: 20px;
    white-space: normal;
    vertical-align: top;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    cursor: pointer;
}

.video-thumbnail iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.video-description {
    font-size: 14px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.channel-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.channel-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    color: #fff;
}

.heading {
    font-size: 36px;
    margin-bottom: 10px;
}

.font-weight-light {
    font-weight: 300;
}

.divider-center {
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    margin: 15px auto;
}

.loading-text {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Dedicated Parent Class for FAQ Section */
.faq-section-wrapper {
    position: relative;
    z-index: 10;
}

.faq-section-wrapper .faq-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    flex-wrap: nowrap;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f5f5f5;
}

.faq-section-wrapper .faq-tabs::-webkit-scrollbar {
    height: 6px;
}

.faq-section-wrapper .faq-tabs::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.faq-section-wrapper .faq-tabs::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.faq-section-wrapper .faq-tabs::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* Tab Button Base Styles */
.faq-section-wrapper .faq-tab {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    background-color: #3c1114;
    color: #fff;
}

/* Individual Tab Colors */
.faq-section-wrapper .faq-tab.general {
    background-color: #3c1114;
    color: #fff;
}

.faq-section-wrapper .faq-tab.general:hover,
.faq-section-wrapper .faq-tab.general.active {
    background-color: #3c1114;
    color: white;
}

.faq-section-wrapper .faq-tab.meeting {
    background-color: #D4E4E8;
    color: #5A8FA3;
}

.faq-section-wrapper .faq-tab.meeting:hover,
.faq-section-wrapper .faq-tab.meeting.active {
    background-color: #5A8FA3;
    color: white;
}

.faq-section-wrapper .faq-tab.tour {
    background-color: #FFD4D4;
    color: #E74C3C;
}

.faq-section-wrapper .faq-tab.tour:hover,
.faq-section-wrapper .faq-tab.tour.active {
    background-color: #E74C3C;
    color: white;
}

.faq-section-wrapper .faq-tab.admissions {
    background-color: #CCF0F5;
    color: #00BCD4;
}

.faq-section-wrapper .faq-tab.admissions:hover,
.faq-section-wrapper .faq-tab.admissions.active {
    background-color: #00BCD4;
    color: white;
}

/* Active Tab Indicator */
.faq-section-wrapper .faq-tab.active {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* FAQ Content */
.faq-section-wrapper .faq-content {
    display: none;
}

.faq-section-wrapper .faq-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Styles */
.faq-section-wrapper .card {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: #fff8e5;
}

.faq-section-wrapper .rotate-icon {
    transition: transform 0.3s ease;
}

.faq-section-wrapper .btn-link:not(.collapsed) .rotate-icon {
    transform: rotate(180deg);
}

.faq-section-wrapper .card-body {
    padding: 20px 25px;
    color: #666;
    line-height: 1.6;
    text-decoration: none;
}

.faq-section-wrapper .card .btn.btn-link.collapsed,
.faq-section-wrapper .card .btn.btn-link {
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    position: relative;
    text-decoration: none
}

.faq-section-wrapper .card .btn.btn-link.collapsed i,
.faq-section-wrapper .card .btn.btn-link i {
    position: absolute;
    right: 30px;
}

.gallery-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gallery-scroll-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px 0;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #3c1114;
}

.gallery-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.gallery-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb {
    background: #3c1114;
    border-radius: 10px;
}

.gallery-item {
    flex: 0 0 300px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-btn {
    background: #3c1114;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gallery-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.gallery-btn:active {
    transform: scale(0.95);
}


/* Top Header Responsive Styles */
.top-header {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.top-header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.contact-info {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.contact-info li:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 20px;
    background-color: #dee2e6;
    margin: 0 15px;
}

.contact-info a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #3c1114;
}

.contact-info i {
    margin-right: 8px;
    font-size: 14px;
    color: #3c1114;
    min-width: 16px;
}

.contact-info span {
    white-space: nowrap;
}

.top-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.social-icons-top {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons-top li {
    margin: 0;
    padding: 0;
}

.social-icons-top a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 82, 82, 0.1);
    color: #3c1114;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-icons-top a:hover {
    background: #3c1114;
    color: #fff;
    transform: translateY(-3px);
}

/* Tablet Responsive (768px and below) */
@media (max-width: 768px) {
    .top-header {
        padding: 12px 0;
    }

    .top-header .row {
        flex-direction: column;
        gap: 12px;
    }

    .top-header-left {
        justify-content: left;
        width: 50%;
    }

    .top-header-right {
        justify-content: left;
        width: 50%;
    }

    .contact-info {
        justify-content: center;
        flex-direction: row;
    }

    .contact-info li {
        padding: 5px 0;
    }

    .contact-info li:not(:last-child)::after {
        height: 18px;
        margin: 0 12px;
    }

    .contact-info span {
        font-size: 13px;
    }

    .social-icons-top {
        justify-content: center;
        gap: 10px;
    }
}

/* Mobile Responsive (576px and below) */
@media (max-width: 576px) {
    .top-header {
        padding: 10px 0;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .contact-info li {
        padding: 8px 0;
        justify-content: center;
        width: 100%;
    }

    .contact-info li:not(:last-child)::after {
        width: 80%;
        height: 1px;
        margin: 8px 0;
    }

    .contact-info a {
        font-size: 13px;
        justify-content: center;
    }

    .contact-info i {
        font-size: 13px;
        margin-right: 6px;
    }

    .social-icons-top {
        gap: 8px;
        margin-top: 10px;
    }

    .social-icons-top a {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Nested Submenu Styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    margin-left: 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: scale(1, 0);
    transform-origin: 0 0;
    border-radius: 0;
    box-shadow: 0 13px 25px -12px rgba(0, 0, 0, 0.25);
    background: #fff;
    min-width: 200px;
    transition: all 0.3s ease;
}

.dropdown-submenu:hover>.dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}

/* Ensure the d-down parent also allows overflow */
.location-dropdown .d-down,
.services-dropdown .d-down {
    overflow: visible !important;
}

/* Arrow for submenu */
.dropdown-submenu>.dropdown-toggle::after {
    margin-left: .255em;
    vertical-align: middle;
    content: "";
    border-top: .3em solid transparent;
    border-right: 0;
    border-bottom: .3em solid transparent;
    border-left: .3em solid;
    float: right;
    margin-top: 8px;
}