@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Space+Grotesk:wght@300..700&display=swap');

* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    transition: background-color .25s linear, color .25s linear, border-color .25s linear;
}

/* If user prefers dark, set dark as starting point */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        /* only if user hasn't chosen manually */
    }
}


/* Let browsers style form controls & scrollbars per theme */
:root {
    color-scheme: light dark;
}

/* Base (light) palette */
:root {
    --bg: #fdfcdd;
    --overlay: linear-gradient(to right, rgba(207, 46, 46, 0.726), rgba(44, 5, 47, 0.825));
    --secondary-gradient: linear-gradient(180deg, #4B328B 0%, #2B1C50 100%);
    --overlay-2: linear-gradient(to top, #fff, rgb(0 0 0 / 0%));
    /* --shadow: 2px 5px 9px rgb(86 85 85 / 75%); */
    --shadow: none;
    --fg: #ab0c59;
    --muted: #1a281f;
    --border: #ffcbe4;
    --btn-bg: #fff4f7;
    --btn-active: #ab0c59;
}

/* Dark overrides */
html[data-theme="dark"] {
    --bg: #0c0c0e;
    --overlay: linear-gradient(to top, #0c0c0e, rgb(0 0 0 / 81%));
    --secondary-gradient: linear-gradient(180deg, #4B328B 0%, #2B1C50 100%);
    --overlay-2: linear-gradient(to top, #0c0c0e, rgb(0 0 0 / 0%));
    --shadow: none;
    --fg: #fff;
    --muted: #ced4da;
    --border: #414141;
    --btn-bg: #1e1d1d;
    --btn-active: #fff;
}

body {
    background-color: var(--bg);
}

#theme-toggle {
    position: fixed;
    z-index: 10;
    font-weight: 500;
    top: 15px;
    right: 15px;
    font-size: 11px;
    border: 0.2px solid var(--border);
    padding: 7px 9px;
    border-radius: 8px;
    background: var(--btn-active);
    color: var(--bg);
}

.m-heading {
    font-family: "Space Grotesk", sans-serif;
    color: var(--fg);
    font-size: 23px;
    font-weight: 500;
    letter-spacing: -1px;
    margin: 0px;
    padding: 0px;
}

.desc {
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    color: var(--muted);
    margin: 0px;
    padding: 0px;
    font-weight: normal;
}

.custom-nav-link {
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    transition: all ease-in-out 0.25s;
}

.custom-nav-link li {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.custom-nav-link li span {
    background-color: #0072ff;
    height: 7px;
    width: 86%;
    position: absolute;
    bottom: -5px;
    left: 0px;
    border-radius: 0px 0px 6px 6px;
    right: 0px;
    margin: 0px auto;
    display: none;
}

.custom-nav-link li button {
    color: var(--fg);
    font-family: "Roboto", sans-serif;
    width: 100%;
    border-radius: 8px !important;
    background-color: var(--btn-bg) !important;
    border: 0.2px solid var(--border) !important;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
    padding: 10px 12px;
    letter-spacing: 0px;
    position: relative;
}

.custom-nav-link li button:hover {
    background-color: var(--btn-active) !important;
    color: var(--bg);
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: var(--btn-active) !important;
    color: var(--bg);
}

.nav-pills .nav-link.active,
.nav-pills .show span {
    display: block;
}

.custom-nav-link::-webkit-scrollbar {
    height: 6px;
}

.custom-nav-link::-webkit-scrollbar-track {
    background: #f9f9f9;
}

.custom-nav-link::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.downArrow-animation {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    margin: 0px auto;
    width: fit-content;
    cursor: pointer;
}

.downArrow-animation #arrow {
    width: 3rem;
    position: relative;
    top: -13px;
    left: -2px;
}

.downArrow-animation #shape {
    width: 12rem;
    position: absolute;
    bottom: -83px;
    left: -75px;
    right: 0rem;
    margin: 0px auto;
}



.rotate {
    animation: spin 13s linear infinite;
    /* continuous rotation */
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* --------------GALLERY HEADER CSS------------------ */

.gallery-header {
    position: relative;
    height: 95vh;
    overflow: hidden;
    padding-bottom: 30rem;
}

.gallery-header video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.gallery-header:before {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: var(--overlay);
}

/* .gallery-header:after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 24%;
    z-index: 1;
    background: var(--overlay-2);
} */

.gallery-header svg {
    position: absolute;
    bottom: -60px;
    z-index: 1;
    fill: var(--bg);
}

.gallery-header .content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-header .content .logo {
    width: 10rem;
    margin-bottom: 6px;
    opacity: 90%;
}

.gallery-header h3 {
    color: #ffff;
    font-family: 'Times New Roman', Times, serif;
    font-size: 35px;
    margin: 0px;
    padding: 0px;
}

.gallery-header p {
    color: #fff;
    font-size: 12px;
}

.headerSwiper {
    position: absolute;
    bottom: 25px;
}

.swiper-pagination-bullet {
    background: #ffffff;
    /* opacity: var(--swiper-pagination-bullet-inactive-opacity, .2); */
}


/* -------------- PHOTO GALLERY CSS------------------ */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    grid-auto-rows: 12.5rem;
    grid-auto-flow: dense;
    gap: 0.75rem;
    margin-top: 26px;
}

.gallery figure {
    /* container-type: inline-size; */
    container: figure / inline-size;
    overflow: hidden;

    display: grid;
    border-radius: 6px;
    grid-row: span 2;
    /* grid-template-columns: 1fr; */
    /* grid-template-rows: 1fr; */

    /*
    Because 1fr = minmax(auto, 1fr),
    to prevent the grid blowout,
    set the minimum to zero.
  */
    box-shadow: var(--shadow);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
}

.gallery img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    grid-area: 1 / 1 / -1 / -1;
    transition: scale 0.25s ease-in-out;
    aspect-ratio: 16/9;
}

.gallery figure:hover img {
    scale: 1.125;
}

.gallery figcaption {
    grid-area: 1 / 1 / -1 / -1;
    align-self: end;
    z-index: 1;


    padding: 3em 15% 1em 1em;
    color: var(--fg);
    font-size: 0.875rem;
    line-height: 1.3;
    background: linear-gradient(transparent 25%, rgb(0 0 0 / 0.75));
    display: none;
}

@container figure (width > 20rem) {
    .gallery figcaption {
        /* display: block; */
    }
}

.gallery figcaption h3 {
    font-size: 1.0625rem;
}

.gallery figcaption p {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (width > 600px) {
    .gallery figure:nth-child(1) {
        grid-area: span 2 / span 2;
    }

    .gallery figure:nth-child(4n + 1) {
        grid-row: span 2;
    }

    .gallery figure:nth-child(4n + 2) {
        grid-column: span 2;
    }
}

/* -------------- HEADER SWIPER CSS------------------ */

.swiper {
    width: 100%;
    padding-top: 23px;
    padding-bottom: 50px;
    margin-bottom: 3rem;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 600px;
    height: 400px;
    border-radius: 6px;
    overflow: hidden;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    /* aspect-ratio: ; */
    object-fit: cover;
}

/*css s */
@media (max-width:576px){
    .swiper-slide{
        width: 580px;
        height: 319px;
    }
 
    .swiper-slide img{
        width: 64%;
        margin-left: 110px;
        height: 80%;
    }
    
    .swiper{
    padding-top: 0px;
    padding-bottom: 0px;
    margin-bottom: 0rem;
    }
 
    .headerSwiper{
     bottom: 163px;
    }
 
    .gallery-header h3{
        font-size: 30px;
    }
}
/* --------------COPYRIGHT CSS------------------ */

footer {
    background: var(--secondary-gradient);
    padding-top: 4rem;
    padding-bottom: 16px;
    position: relative;
    overflow: hidden;
}

footer svg {
    position: absolute;
    top: -35px;
    fill: var(--bg);
}

footer h4 {
    font-family: "Space Grotesk", sans-serif;
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    margin: 0px;
    padding: 0px;
    text-align: center;
}


/* -------------- PHOTO GALLERY CSS------------------ */
.news-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    grid-auto-rows: 13rem;
    grid-auto-flow: dense;
    gap: 0.75rem;
    margin-top: 26px;
}

.news-gallery figure {
    /* container-type: inline-size; */
    container: figure / inline-size;
    overflow: hidden;

    display: grid;
    border-radius: 6px;
    /* grid-template-columns: 1fr; */
    /* grid-template-rows: 1fr; */

    /*
    Because 1fr = minmax(auto, 1fr),
    to prevent the grid blowout,
    set the minimum to zero.
  */
    box-shadow: var(--shadow);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
}

.news-gallery img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    grid-area: 1 / 1 / -1 / -1;
    transition: scale 0.25s ease-in-out;
}

.news-gallery figure:hover img {
    scale: 1.125;
}

.news-gallery figcaption {
    grid-area: 1 / 1 / -1 / -1;
    align-self: end;
    z-index: 1;
    padding: 5em 15% 1em 1em;
    color: var(--fg);
    font-size: 0.875rem;
    line-height: 1.3;
    background: linear-gradient(#00000000 30%, rgba(0, 0, 0, 0.893));
    /* display: none; */
}

/* @container figure (width > 20rem) {
    .news-gallery figcaption {
        display: block;
    }
} */

.news-gallery figcaption h3 {
    font-size: 15px;
    margin: 0px;
    padding: 0px;
    color: #fff;
}

.news-gallery figcaption p {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0px;
    padding: 0px;
    font-size: 12px;
    color: #fff;

}

/* @media (width > 600px) {
    .news-gallery figure:nth-child(1) {
        grid-area: span 2 / span 2;
    }

    .news-gallery figure:nth-child(4n + 1) {
        grid-row: span 2;
    }

    .news-gallery figure:nth-child(4n + 2) {
        grid-column: span 2;
    }
} */

.gallery {
  position: relative;
  min-height: 120px; /* keeps space stable so loader doesn’t jump */
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}