/* =========================================================
   SPARK LABS
   GALLERY PAGE
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    color: #102a43;
    background: #ffffff;
}


img {
    display: block;
    max-width: 100%;
}


a {
    text-decoration: none;
    color: inherit;
}


button {
    font-family: inherit;
}



/* =========================================================
   NAVBAR
   EXACT STYLE FROM CURRICULUM
========================================================= */

.navbar {
    height: 84px;

    padding: 0 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #ffffff;

    /* SAME BOTTOM BORDER AS CURRICULUM */
    border-bottom: 1px solid #e5e7eb;

    position: sticky;
    top: 0;

    z-index: 1000;
}



/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;

    gap: 10px;

    flex-shrink: 0;

    cursor: pointer;
}


.logo-icon {
    width: 42px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}


.logo-icon img {
    width: 42px;
    height: 48px;

    object-fit: contain;
}


.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.logo-text strong {
    color: #1268e8;

    font-size: 22px;
    line-height: 23px;

    font-weight: 700;
}


.logo-text small {
    margin-top: 3px;

    color: #111827;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;
}



/* =========================================================
   NAVIGATION
========================================================= */

.navigation {
    display: flex;
    align-items: center;

    gap: 37px;

    height: 100%;

    margin-left: auto;
    margin-right: 40px;
}


.navigation a {
    height: 100%;

    display: flex;
    align-items: center;

    position: relative;

    color: #0d172a;

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;
}


.navigation a:hover {
    color: #1769e8;
}


/* ACTIVE GALLERY */

.navigation a.active {
    color: #1268e8;
}


.navigation a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: 0;

    height: 2px;

    background: #1268e8;
}



/* =========================================================
   ENROLL BUTTON
========================================================= */

.enroll-button {
    width: auto;

    min-width: 140px;

    height: 48px;

    padding: 0 24px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    background: #176ce8;

    color: #ffffff;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;

    box-shadow:
        0 7px 18px rgba(23, 108, 232, 0.18);

    flex-shrink: 0;
}


.enroll-button:hover {
    background: #0f5ed6;
}



/* =========================================================
   GALLERY HERO
========================================================= */

.gallery-hero {
    width: 100%;

    min-height: 380px;

    position: relative;

    display: flex;

    overflow: hidden;

    background: #eef7ff;
}



/* =========================================================
   HERO CONTENT
========================================================= */

.gallery-hero-content {
    width: 53%;

    padding-left: 6%;
    padding-top: 43px;

    position: relative;

    z-index: 5;
}


.hero-label {
    color: #0867e8;

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 12px;

    letter-spacing: 0.2px;
}


.gallery-hero h1 {
    color: #102a43;

    font-size: 48px;

    line-height: 1.08;

    font-weight: 700;

    letter-spacing: -1.3px;

    margin-bottom: 17px;
}


.gallery-hero h1 span {
    display: block;

    color: #176ce8;
}


.gallery-hero-content > p {
    max-width: 580px;

    color: #526b89;

    font-size: 14px;

    line-height: 1.7;

    margin-bottom: 20px;
}



/* =========================================================
   HERO STATS
========================================================= */

.gallery-stats {
    display: flex;

    gap: 10px;

    width: 100%;
}


.gallery-stat {
    width: 145px;

    min-height: 78px;

    display: flex;

    align-items: center;

    padding: 10px 11px;

    background: #ffffff;

    border: 1px solid #d6e3f0;

    border-radius: 9px;

    box-shadow:
        0 3px 10px rgba(21, 72, 120, 0.04);
}


.stat-image {
    width: 38px;

    min-width: 38px;

    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-right: 8px;
}


.stat-image img {
    width: 34px;

    height: 34px;

    object-fit: contain;
}


.gallery-stat strong {
    display: block;

    color: #102a43;

    font-size: 17px;

    line-height: 1.1;

    margin-bottom: 3px;
}


.gallery-stat span {
    display: block;

    color: #173a68;

    font-size: 10px;

    font-weight: 700;

    line-height: 1.3;
}



/* =========================================================
   HERO IMAGE
========================================================= */

.gallery-hero-image {
    position: absolute;

    right: 0;
    top: 0;

    width: 50%;
    height: 100%;

    overflow: hidden;
}


.gallery-hero-image > img {
    position: absolute;

    right: 0;
    top: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    border-radius: 48% 0 0 48%;
}



/* =========================================================
   HERO DECORATION
========================================================= */

.hero-circle {
    position: absolute;

    left: -35px;
    top: 45px;

    width: 145px;
    height: 145px;

    border: 2px dashed #1974ee;

    border-radius: 50%;

    z-index: 3;
}


.hero-circle::after {
    content: "";

    position: absolute;

    width: 15px;
    height: 15px;

    background: #1974ee;

    border-radius: 50%;

    bottom: 9px;
    left: 2px;
}


.hero-dots {
    position: absolute;

    right: 20px;
    top: 85px;

    display: flex;

    flex-direction: column;

    gap: 8px;

    z-index: 4;
}


.hero-dots span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #1974ee;
}



/* =========================================================
   GALLERY SECTION
========================================================= */

.gallery-section {
    width: 100%;

    padding: 40px 6% 55px;

    background: #ffffff;
}



/* =========================================================
   GALLERY HEADING
========================================================= */

.gallery-heading {
    max-width: 1180px;

    margin: 0 auto 25px;

    display: flex;

    justify-content: space-between;
}


.section-label {
    color: #0867e8;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.5px;

    margin-bottom: 7px;
}


.gallery-heading h2 {
    color: #102a43;

    font-size: 27px;

    line-height: 1.2;

    margin-bottom: 7px;
}


.gallery-heading p {
    color: #526b89;

    font-size: 13px;

    line-height: 1.6;

    max-width: 600px;
}



/* =========================================================
   FILTERS
========================================================= */

.gallery-filters {
    max-width: 1180px;

    margin: 0 auto 20px;

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;
}


.filter-button {
    min-height: 39px;

    padding: 0 18px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    border: 1px solid #dce7f2;

    border-radius: 22px;

    background: #ffffff;

    color: #173a68;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.filter-button img {
    width: 19px;

    height: 19px;

    object-fit: contain;
}


.filter-button:hover {
    transform: translateY(-1px);

    border-color: #176ce8;

    color: #176ce8;
}


.filter-button.active {
    background: #1672f4;

    color: #ffffff;

    border-color: #1672f4;

    box-shadow:
        0 5px 14px rgba(22, 114, 244, 0.15);
}


.filter-button.active img {
    filter: brightness(0) invert(1);
}



/* =========================================================
   GALLERY GRID
========================================================= */

.gallery-grid {
    width: 100%;

    max-width: 1180px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1.25fr
        1fr
        1fr;

    grid-auto-rows: 205px;

    gap: 12px;
}



/* =========================================================
   GALLERY ITEM
========================================================= */

.gallery-item {
    min-width: 0;

    position: relative;

    overflow: hidden;

    border-radius: 11px;

    background: #eef5fb;

    border: 1px solid #e1eaf2;

    box-shadow:
        0 4px 12px rgba(20, 50, 90, 0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.gallery-item:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(20, 50, 90, 0.10);
}


.gallery-large {
    grid-row: span 2;
}


.gallery-tall {
    grid-row: span 2;
}


.gallery-wide {
    grid-column: span 2;
}



/* =========================================================
   GALLERY IMAGE
========================================================= */

.gallery-image {
    width: 100%;
    height: 100%;

    position: relative;

    overflow: hidden;
}


.gallery-image > img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}


.gallery-item:hover .gallery-image > img {
    transform: scale(1.04);
}



/* =========================================================
   IMAGE OVERLAY
========================================================= */

.image-overlay {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 38px 15px 14px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    background:
        linear-gradient(
            transparent,
            rgba(5, 24, 47, 0.88)
        );

    color: #ffffff;
}


.image-overlay h3 {
    font-size: 13px;

    line-height: 1.3;

    margin-bottom: 4px;
}


.image-overlay p {
    font-size: 10px;

    opacity: 0.9;
}


.view-icon {
    width: 29px;
    height: 29px;

    flex-shrink: 0;

    border: 1px solid rgba(255,255,255,0.75);

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 19px;

    line-height: 1;
}



/* =========================================================
   VIDEO ITEMS
========================================================= */

.video-item {
    background: #ffffff;

    display: flex;

    flex-direction: column;
}


.gallery-video {
    position: relative;

    width: 100%;

    height: 150px;

    background: #061a2d;

    overflow: hidden;
}


.gallery-video video {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.video-label {
    position: absolute;

    top: 9px;
    left: 9px;

    padding: 4px 8px;

    background: #1672f4;

    color: #ffffff;

    border-radius: 4px;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 0.5px;
}


.video-info {
    padding: 10px 12px 12px;
}


.video-info h3 {
    color: #102a43;

    font-size: 12px;

    margin-bottom: 3px;
}


.video-info p {
    color: #607994;

    font-size: 9px;
}



/* =========================================================
   LOAD MORE
========================================================= */

.load-more {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    margin: 22px auto 0;

    padding: 10px 22px;

    border: 1px solid #1672f4;

    border-radius: 7px;

    background: #ffffff;

    color: #1672f4;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;
}


.load-more span {
    font-size: 18px;

    line-height: 10px;
}


.load-more:hover {
    background: #1672f4;

    color: #ffffff;
}



/* =========================================================
   VIDEO HIGHLIGHTS
========================================================= */

.video-highlights {
    width: 100%;

    padding: 35px 6% 38px;

    background: #eef7ff;

    display: grid;

    grid-template-columns: 220px 1fr;

    gap: 35px;

    align-items: center;
}


.video-highlight-intro h2 {
    color: #102a43;

    font-size: 25px;

    margin-bottom: 8px;
}


.video-highlight-intro p {
    color: #526b89;

    font-size: 11px;

    line-height: 1.6;

    margin-bottom: 15px;
}


.view-all-button {
    padding: 9px 15px;

    background: #ffffff;

    border: 1px solid #1672f4;

    border-radius: 6px;

    color: #1672f4;

    font-size: 10px;

    font-weight: 700;

    cursor: pointer;
}


.view-all-button span {
    margin-left: 6px;
}


.video-highlight-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;
}


.highlight-video {
    min-width: 0;
}


.highlight-video video {
    display: block;

    width: 100%;

    height: 105px;

    object-fit: cover;

    border-radius: 8px;

    background: #09203a;
}


.highlight-video h3 {
    color: #102a43;

    font-size: 11px;

    margin-top: 8px;

    margin-bottom: 3px;
}


.highlight-video p {
    color: #607994;

    font-size: 9px;
}



/* =========================================================
   TESTIMONIAL
========================================================= */

.gallery-testimonial {
    width: calc(100% - 12%);

    max-width: 1180px;

    min-height: 105px;

    margin: 25px auto;

    padding: 22px 35px;

    border-radius: 15px;

    background:
        linear-gradient(
            110deg,
            #1672f4,
            #1261d8
        );

    color: #ffffff;

    display: grid;

    grid-template-columns: 80px 1fr 220px;

    gap: 20px;

    align-items: center;

    overflow: hidden;
}


.quote-mark {
    color: rgba(255,255,255,0.55);

    font-size: 72px;

    line-height: 60px;

    font-family: Georgia, serif;

    text-align: center;
}


.testimonial-text p {
    font-size: 16px;

    line-height: 1.5;

    font-weight: 600;
}


.testimonial-student {
    display: flex;

    align-items: center;

    gap: 12px;
}


.student-avatar {
    width: 50px;
    height: 50px;

    border-radius: 50%;

    overflow: hidden;

    background: #ffffff;
}


.student-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.testimonial-student strong {
    display: block;

    font-size: 11px;

    margin-bottom: 3px;
}


.testimonial-student span {
    display: block;

    font-size: 9px;

    opacity: 0.85;
}



/* =========================================================
   BOTTOM CTA
========================================================= */

.gallery-cta {
    width: 100%;

    min-height: 145px;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            110deg,
            #123ba8,
            #0875ed
        );

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;
}


.cta-content {
    position: relative;

    z-index: 3;
}


.cta-content h2 {
    font-size: 23px;

    margin-bottom: 7px;
}


.cta-content p {
    font-size: 11px;

    margin-bottom: 14px;

    opacity: 0.92;
}


.cta-buttons {
    display: flex;

    justify-content: center;

    gap: 14px;
}


.cta-primary,
.cta-secondary {
    min-width: 135px;

    padding: 9px 20px;

    border-radius: 6px;

    font-size: 10px;

    font-weight: 700;
}


.cta-primary {
    background: #ffffff;

    color: #1260ce;
}


.cta-secondary {
    background: transparent;

    color: #ffffff;

    border: 1px solid rgba(255,255,255,0.8);
}


.cta-decoration {
    position: absolute;

    width: 110px;
    height: 110px;

    opacity: 0.16;
}


.cta-decoration img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    filter: brightness(0) invert(1);
}


.left-decoration {
    left: 12%;

    transform: rotate(-10deg);
}


.right-decoration {
    right: 12%;

    transform: rotate(10deg);
}



/* =========================================================
   FOOTER
   SAME FOOTER STRUCTURE / COLORS AS CURRICULUM
========================================================= */

.footer {
    background-color: #071b33;

    color: white;

    padding: 60px 6% 0;
}


.footer-container {
    max-width: 1400px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr
        1.2fr
        1.6fr;

    gap: 40px;

    padding-bottom: 45px;
}



/* =========================================================
   FOOTER BRAND
========================================================= */

.footer-logo {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 20px;
}


.footer-logo img {
    width: 48px;

    height: 48px;

    object-fit: contain;
}


.footer-logo div {
    display: flex;

    flex-direction: column;
}


.footer-logo strong {
    color: #ffffff;

    font-size: 19px;
}


.footer-logo small {
    color: #ffffff;

    font-size: 8px;

    letter-spacing: 1.5px;

    margin-top: 3px;
}


.footer-brand > p {
    color: #aebfd1;

    font-size: 12px;

    line-height: 1.7;

    max-width: 270px;
}



/* =========================================================
   FOOTER COLUMNS
========================================================= */

.footer-column {
    display: flex;

    flex-direction: column;
}


.footer-column h3,
.footer-newsletter h3 {
    color: #ffffff;

    font-size: 14px;

    margin-bottom: 20px;
}


.footer-column a {
    color: #aebfd1;

    font-size: 12px;

    margin-bottom: 12px;

    transition: color 0.2s ease;
}


.footer-column a:hover {
    color: #ffffff;
}


.footer-column p {
    color: #aebfd1;

    font-size: 12px;

    line-height: 1.7;

    margin-bottom: 8px;
}



/* =========================================================
   NEWSLETTER
========================================================= */

.footer-newsletter > p {
    color: #aebfd1;

    font-size: 12px;

    line-height: 1.6;

    margin-bottom: 15px;
}


.newsletter-form {
    display: flex;

    width: 100%;
}


.newsletter-form input {
    min-width: 0;

    flex: 1;

    padding: 12px;

    border: 1px solid #304b66;

    border-right: none;

    border-radius: 6px 0 0 6px;

    background-color: #102a43;

    color: white;

    outline: none;

    font-size: 11px;
}


.newsletter-form input::placeholder {
    color: #8fa5ba;
}


.newsletter-form input:focus {
    border-color: #0878e8;
}


.newsletter-form button {
    padding: 12px 14px;

    border: none;

    border-radius: 0 6px 6px 0;

    background-color: #0878e8;

    color: white;

    cursor: pointer;

    font-size: 11px;

    font-weight: 600;
}


.newsletter-form button:hover {
    background-color: #0566c7;
}



/* =========================================================
   FOOTER BOTTOM
   EXACT SAME BORDER AS CURRICULUM
========================================================= */

.footer-bottom {
    max-width: 1400px;

    margin: 0 auto;

    padding: 20px 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    /* SAME AS CURRICULUM */
    border-top: 1px solid #203a53;
}


.footer-bottom p {
    color: #8299ad;

    font-size: 10px;
}


.footer-bottom-links {
    display: flex;

    gap: 20px;
}


.footer-bottom-links a {
    color: #8299ad;

    text-decoration: none;

    font-size: 10px;
}


.footer-bottom-links a:hover {
    color: white;
}



/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .navbar {
        padding: 0 4%;
    }


    .navigation {
        gap: 22px;

        margin-right: 25px;
    }


    .gallery-hero {
        min-height: 390px;
    }


    .gallery-hero-content {
        width: 55%;

        padding-left: 5%;
    }


    .gallery-hero h1 {
        font-size: 42px;
    }


    .gallery-hero-image {
        width: 48%;
    }


    .gallery-stat {
        width: 135px;
    }


    .gallery-grid {
        grid-auto-rows: 190px;

        gap: 10px;
    }


    .footer-container {
        grid-template-columns:
            1.4fr
            1fr
            1fr
            1fr;
    }


    .footer-newsletter {
        grid-column: span 2;
    }

}



/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 850px) {

    .navbar {
        height: auto;

        min-height: 80px;

        padding: 15px 5%;

        flex-wrap: wrap;

        gap: 15px;
    }


    .navigation {
        height: auto;

        margin: 0 auto;

        flex-wrap: wrap;

        justify-content: center;

        gap: 18px;
    }


    .navigation a {
        height: 35px;
    }


    .navigation a.active::after {
        bottom: 0;
    }


    .gallery-hero {
        height: auto;

        display: block;

        padding-bottom: 30px;
    }


    .gallery-hero-content {
        width: 100%;

        padding: 35px 7% 0;
    }


    .gallery-hero-image {
        position: relative;

        width: 90%;

        height: 300px;

        margin: 25px auto 0;
    }


    .gallery-hero-image > img {
        border-radius: 25px;
    }


    .hero-circle {
        display: none;
    }


    .gallery-stats {
        flex-wrap: wrap;
    }


    .gallery-stat {
        flex: 1 1 135px;
    }


    .gallery-grid {
        grid-template-columns:
            1fr 1fr;

        grid-auto-rows: 190px;
    }


    .gallery-wide {
        grid-column: span 2;
    }


    .gallery-large,
    .gallery-tall {
        grid-row: span 2;
    }


    .video-highlights {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    .video-highlight-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .gallery-testimonial {
        grid-template-columns:
            60px 1fr;

        padding: 20px;
    }


    .testimonial-student {
        grid-column: 2;
    }


    .footer-container {
        grid-template-columns:
            1fr 1fr;
    }


    .footer-newsletter {
        grid-column: span 2;
    }

}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 550px) {

    .navbar {
        padding: 14px 5%;
    }


    .logo-text strong {
        font-size: 19px;
    }


    .logo-text small {
        font-size: 8px;
    }


    .navigation {
        gap: 12px;
    }


    .navigation a {
        font-size: 12px;
    }


    .enroll-button {
        min-width: auto;

        height: 42px;

        padding: 0 15px;

        font-size: 12px;
    }


    .gallery-hero h1 {
        font-size: 35px;
    }


    .gallery-hero-content > p {
        font-size: 13px;
    }


    .gallery-stats {
        display: grid;

        grid-template-columns:
            1fr 1fr;
    }


    .gallery-stat {
        width: 100%;
    }


    .gallery-section {
        padding-left: 5%;

        padding-right: 5%;
    }


    .gallery-filters {
        justify-content: flex-start;
    }


    .filter-button {
        padding: 0 13px;
    }


    .gallery-grid {
        grid-template-columns: 1fr;

        grid-auto-rows: 220px;
    }


    .gallery-large,
    .gallery-tall,
    .gallery-wide {
        grid-column: span 1;

        grid-row: span 1;
    }


    .video-highlight-grid {
        grid-template-columns: 1fr;
    }


    .gallery-testimonial {
        width: 90%;

        grid-template-columns: 1fr;

        text-align: center;
    }


    .quote-mark {
        display: none;
    }


    .testimonial-student {
        grid-column: 1;

        justify-content: center;
    }


    .gallery-cta {
        padding: 30px 20px;
    }


    .cta-decoration {
        display: none;
    }


    .footer {
        padding: 45px 5% 0;
    }


    .footer-container {
        grid-template-columns: 1fr;
    }


    .footer-newsletter {
        grid-column: span 1;
    }


    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;

        gap: 12px;
    }

}