/* Hero Section Dimensions & Background */
.gallery-hero-section {
    min-height: 50vh;
    /* Height matches the visual proportion */
    background-image: url("/images/gallery/gallery-bg.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* The Dark Overlay (Critical for the "Exact" look) */
.gallery-hero-overlay {
    background: rgba(15, 23, 42, 0.75);
    /* Deep slate-blue dark overlay */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    /* Slight blur for premium feel */
}

/* Typography Matching */
.gallery-hero-title {
    font-weight: 800;
    /* Extra Bold */
    letter-spacing: -1px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /* Slight text shadow for depth */
}

.gallery-hero-subtitle {
    max-width: 700px;
    /* Restricts width to keep text centered nicely */
    font-size: 1.15rem;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .gallery-hero-section {
        min-height: 50vh;
    }

    .gallery-hero-title {
        font-size: 2.5rem;
        /* Smaller font on mobile */
    }
}

/* What Our Students Say */
/* Stats Section Styling */
.gallery-stats-section {
    background-color: #ffffff;
    /* Clean white background */
}

.gallery-stat-card {
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.5s ease;
    /* Image jaisa soft shadow */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 1);
}

.gallery-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Icon Background Circles */
.gallery-stat-icon-bg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

/* Exact Colors from Image */
.gallery-bg-blue {
    background-color: #eef2ff;
}

.gallery-text-blue {
    color: #2563eb;
}

.gallery-bg-orange-soft {
    background-color: #fff7ed;
    color: #f97316 !important;
}

.gallery-text-orange {
    color: #f97316;
}

.gallery-bg-indigo {
    background-color: #eff6ff;
}

.gallery-text-indigo {
    color: #1d4ed8;
}

.gallery-bg-orange-light {
    background-color: #fffaf5;
}

.gallery-text-orange-dark {
    color: #fb923c;
}

/* Typography */

.gallery-stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    /* Muted gray for label */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* Images */

/* Container & Titles */
.gallery-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.gallery-main-subtitle {
    color: #64748b;
    font-size: 1rem;
}

/* Tabs Styling */
.gallery-tabs-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-tab-btn {
    padding: 8px 24px;
    border-radius: 50px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-tab-btn.active,
.gallery-tab-btn:hover {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Masonry Layout Logic */
.gallery-masonry-grid {
    column-count: 3;
    column-gap: 20px;
    margin-top: 40px;
    transition: all 0.5s ease;
}

@media (max-width: 992px) {
    .gallery-masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .gallery-masonry-grid {
        column-count: 1;
    }
}

.gallery-grid-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
    animation: gallery-fadeIn 0.5s ease forwards;
}

.gallery-grid-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-grid-item:hover img {
    transform: scale(1.05);
}

@keyframes gallery-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video */

/* Video Thumbnail Ratio */
.gallery-video-thumb {
    padding-top: 65%;
    /* Keeps 16:9 like feel */
}

/* Specific Card Animation */
.gallery-video-card {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    border: 1px solid #f1f5f9 !important;
    /* Soft border matching the image */
}

.gallery-video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Play Button Aesthetic */
.gallery-video-play-btn {
    width: 60px;
    height: 60px;
    background-color: #ff6b00;
    /* Orange color from image */
    border-radius: 50%;
    font-size: 20px;
    pointer-events: none;
    /* Let clicks pass through to iframe */
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
    transition: transform 0.3s ease;
}

.gallery-video-card:hover .gallery-video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

/* testimonials */

.gallery-text-orange {
    color: #f97316;
}

/* Matching the Orange Arrow & Subtext */

/* Avatar Style */
.gallery-review-avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* Review Card Premium Look */
.gallery-review-card {
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9 !important;
    /* Soft border from image */
}

.gallery-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
    background-color: #fafcfe;
    /* Very subtle blue-ish tint on hover */
}

/* Icon tweak */
.gallery-stars i {
    margin-right: 2px;
}

/* google review */
/* Helper for Extra Bold Font */
.fw-800 {
    font-weight: 800;
}

/* The Main Card Container */
.gallery-google-card {
    border: 1px solid #f1f5f9 !important;
    /* Soft edge matching image */
    transition: transform 0.3s ease;
}

.gallery-google-card:hover {
    transform: scale(1.02);
    /* Very subtle pop on hover */
}

/* Google Icon Background Circle */
.gallery-google-icon {
    width: 80px;
    height: 80px;
    background-color: #f8faff;
    /* Very light blue tint */
    border-radius: 50%;
}

/* Star Spacing */
.gallery-stars-big i {
    margin: 0 2px;
}

/* Custom Google Blue Button */
.gallery-google-btn {
    background-color: #0061ff !important;
    /* Exact Vibrant Blue */
    border: none !important;
    box-shadow: 0 8px 20px rgba(0, 97, 255, 0.25);
    transition: all 0.3s ease;
}

.gallery-google-btn:hover {
    background-color: #0056e0 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 97, 255, 0.35);
}

/* Rounded-5 helper (Bootstrap default is up to 3) */
.rounded-5 {
    border-radius: 2rem !important;
}

/* Golbal Network */

/* Partner Card Style */
.gallery-partner-card {
    transition: all 0.3s ease-in-out;
    border: 1px solid #eef2f6 !important;
}

.gallery-partner-card:hover {
    transform: translateY(-8px);
    border-color: #2563eb !important;
    /* Subtle blue border on hover */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

.gallery-partner-card h6 {
    font-size: 0.95rem;
    letter-spacing: -0.2px;
}

/* Smooth transition utility */
.transition-all {
    transition: all 0.3s ease-in-out;
}

/* cta */
/* Background & Section Styling */
.gallery-cta-section {
    background: linear-gradient(135deg, #0052d4, #4364f7, #6fb1fc);
    /* Vibrant Blue Gradient */
    /* Alternative: Agar exact solid blue chahiye toh: background-color: #0061ff; */
}

.gallery-cta-title {
    line-height: 1.2;
    letter-spacing: -1px;
}

/* Orange "Book" Button */
.gallery-btn-book {
    background-color: #ff6b00 !important;
    /* Safety Orange from image */
    border: none !important;
    min-width: 240px;
    transition: all 0.3s ease;
}

.gallery-btn-book:hover {
    background-color: #e66000 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3) !important;
}

/* White "Contact" Button */
.gallery-btn-contact {
    background-color: #ffffff !important;
    color: #0061ff !important;
    border: none !important;
    min-width: 200px;
    transition: all 0.3s ease;
}

.gallery-btn-contact:hover {
    background-color: #f8faff !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2) !important;
}

/* Button Icon tweak */
.gallery-cta-section .fas {
    font-size: 0.9rem;
}

/* Responsive adjustment for small screens */
@media (max-width: 576px) {
    .gallery-cta-title {
        font-size: 2rem;
    }

    .gallery-btn-book,
    .gallery-btn-contact {
        width: 100%;
    }
}

/* Video Card Styling to match previous design */
.gallery-video-thumb {
    cursor: pointer;
}

/* Video element styling */
video {
    /* object-fit: cover; Video ko container mein fit karega bina stretch kiye */
}

/* Play Button Styling */
.custom-play-btn {
    width: 60px;
    height: 60px;
    background-color: rgba(220, 53, 69, 0.9); /* Red background like YouTube */
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.gallery-video-thumb:hover .custom-play-btn {
    transform: translate(-50%, -50%) scale(1.1); /* Hover effect */
}
