/* ==========================================================
   SSPKM – modern animated skin
   Loaded AFTER style.css / style-responsive.css, so it only
   overrides looks. No HTML/PHP logic is touched.
   To go back to the old look: remove the two lines in
   views/frontend/common.php that load modern.css / modern.js
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --brand: #2d5f9c;
    --brand-2: #3a7cca;
    --accent: #f9583c;
    --accent-2: #f5702b;
    --ink: #1b2430;
    --muted: #667085;
    --bg-soft: #f4f7fb;
    --radius: 16px;
    --shadow-sm: 0 4px 14px rgba(20, 40, 80, .08);
    --shadow-md: 0 14px 34px rgba(20, 40, 80, .14);
    --ease: cubic-bezier(.22, .8, .3, 1);
}

/* single page scrollbar: style.css put overflow-x:hidden on BOTH html and body => two scrollers */
html {
    scroll-behavior: smooth;
    overflow-x: visible !important;
    overflow-y: auto;
    height: auto;
}

/* flow-root keeps child margins (e.g. #slider margin-top:42px) inside body, like the old overflow:hidden did, without making a scroller */
body {
    overflow: clip !important;
    height: auto;
    display: flow-root;
}

body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -.01em;
}

a {
    transition: color .25s var(--ease);
}

::selection {
    background: var(--accent);
    color: #fff;
}

/* ---------- page entrance + scroll progress ---------- */
/* opacity only, no fill-mode: a transform on <body> would trap position:fixed popups at the page top */
body {
    animation: bodyIn .6s ease;
}

@keyframes bodyIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--brand-2));
    z-index: 2000;
    transition: width .1s linear;
}

/* ---------- header ---------- */
header {
    background: rgba(255, 255, 255, .82) !important;
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 2px 20px rgba(20, 40, 80, .08);
    transition: box-shadow .3s, background .3s;
}

header .top-header {
    background: linear-gradient(100deg, #1f4a80, #3a7cca 55%, #2d5f9c);
    background-size: 200% 100%;
    animation: barShift 12s ease-in-out infinite alternate;
    font-size: 13px;
}

@keyframes barShift {
    to {
        background-position: 100% 0;
    }
}

header .top-header a {
    opacity: .92;
    transition: opacity .2s, transform .2s;
    display: inline-block;
}

header .top-header a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

header .social img {
    transition: transform .3s var(--ease);
}

header .social a:hover img {
    transform: translateY(-3px) scale(1.15) rotate(-4deg);
}

header .logo img {
    transition: transform .5s var(--ease), width .3s;
}

header .logo img:hover {
    transform: rotate(-4deg) scale(1.06);
}

.sticky {
    box-shadow: 0 6px 28px rgba(20, 40, 80, .16) !important;
}

header .pc-nav li a {
    color: var(--ink) !important;
    font-weight: 500;
    position: relative;
    border-radius: 8px;
    transition: color .25s, background .25s;
}

header .pc-nav>li>a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width .35s var(--ease), left .35s var(--ease);
}

header .pc-nav>li>a:hover,
header .pc-nav>li>a.active {
    color: var(--accent) !important;
    background: transparent;
}

header .pc-nav>li>a:hover::after,
header .pc-nav>li>a.active::after {
    width: 100%;
    left: 0;
}

header .pc-nav li.submenu>ul {
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(20, 40, 80, .06);
    overflow: hidden;
    transform-origin: top center;
    animation: dropIn .3s var(--ease);
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

header .pc-nav li.submenu ul li a {
    transition: padding .25s var(--ease), background .25s, color .25s;
}

header .pc-nav li.submenu ul li a:hover {
    padding-left: 22px;
    color: #fff !important;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.menu-btn {
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff !important;
}

header .mobile-nav {
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* ---------- hero slider ---------- */
#slider {
    position: relative;
    overflow: hidden;
}

#slider::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(10, 25, 50, .55), transparent);
    pointer-events: none;
    z-index: 1;
}

.carousel-fade .carousel-inner .item img {
    transform: scale(1.12);
    transition: transform 7s ease-out, opacity .8s !important;
}

.carousel-fade .carousel-inner .active img {
    transform: scale(1) !important;
}

.carousel-indicators {
    z-index: 5;
    bottom: 18px;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    margin: 0 4px;
    border: 2px solid #fff;
    background: transparent;
    transition: all .35s var(--ease);
}

.carousel-indicators .active {
    width: 34px;
    height: 12px;
    border-radius: 10px;
    background: var(--accent);
    border-color: var(--accent);
}

.carousel-control {
    z-index: 5;
    background: none !important;
    opacity: 0;
    transition: opacity .3s;
}

#slider:hover .carousel-control {
    opacity: .9;
}

/* ---------- section headings ---------- */
section h2,
section h3 {
    position: relative;
}

#about-us h3,
#facilities h2,
#events h2,
#documentary h2,
#query h2,
#testimonials h2 {
    font-weight: 300;
}

#about-us h3 .bold900,
section h2 .bold900 {
    font-weight: 700;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

hr.title-underline {
    width: 70px;
    height: 4px;
    border: 0;
    border-radius: 4px;
    margin-left: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    animation: growLine 1s var(--ease) both;
}

@keyframes growLine {
    from {
        width: 0;
    }

    to {
        width: 70px;
    }
}

section {
    padding-top: 46px;
    padding-bottom: 46px;
}

#slider {
    padding: 0;
}

/* ---------- buttons ---------- */
button,
.btn,
.theme-btn,
input[type=submit] {
    transition: transform .25s var(--ease), box-shadow .25s, filter .25s;
}

#about-us .content button,
#facilities button,
#documentary button,
#query button,
.theme-btn,
.btn-primary,
button[type=submit] {
    position: relative;
    overflow: hidden;
    border: 0 !important;
    border-radius: 50px !important;
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
    color: #fff !important;
    font-weight: 600;
    letter-spacing: .02em;
    box-shadow: 0 8px 20px rgba(249, 88, 60, .35) !important;
}

#about-us .content button::after,
#facilities button::after,
#documentary button::after,
#query button::after,
.theme-btn::after,
.btn-primary::after,
button[type=submit]::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-20deg);
}

#about-us .content button:hover::after,
#facilities button:hover::after,
#documentary button:hover::after,
#query button:hover::after,
.theme-btn:hover::after,
.btn-primary:hover::after,
button[type=submit]:hover::after {
    left: 130%;
    transition: left .8s var(--ease);
}

#about-us .content button:hover,
#facilities button:hover,
#documentary button:hover,
#query button:hover,
.theme-btn:hover,
.btn-primary:hover,
button[type=submit]:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(249, 88, 60, .45) !important;
}

/* back-to-top: clean round button (overrides the generic .btn-primary look) */
button.scroll-top.btn-primary {
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    min-height: 0 !important;
    right: 22px !important;
    bottom: 24px !important;
    text-align: center;
    line-height: 48px !important;
    /* jQuery fadeIn sets display:block inline, so no flex */
    border: 0 !important;
    border-radius: 50% !important;
    overflow: visible !important;
    background: linear-gradient(145deg, var(--brand-2), var(--brand)) !important;
    box-shadow: 0 8px 20px rgba(20, 60, 120, .35), 0 0 0 4px rgba(255, 255, 255, .9) !important;
    opacity: 1 !important;
    animation: none !important;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s !important;
}

button.scroll-top.btn-primary::after {
    display: none !important;
}

button.scroll-top.btn-primary i {
    font-size: 15px;
    line-height: 1;
    margin: 0;
    transition: transform .3s var(--ease);
}

button.scroll-top.btn-primary:hover,
button.scroll-top.btn-primary:focus {
    transform: translateY(-4px) !important;
    outline: 0;
    background: linear-gradient(145deg, var(--accent-2), var(--accent)) !important;
    box-shadow: 0 14px 26px rgba(249, 88, 60, .4), 0 0 0 4px rgba(255, 255, 255, .95) !important;
}

button.scroll-top.btn-primary:hover i {
    transform: translateY(-2px);
}

button.scroll-top.btn-primary:active {
    transform: scale(.94) !important;
}

/* ---------- about + news ---------- */
#about-us {
    background: linear-gradient(180deg, #fff, var(--bg-soft));
}

#about-us .content p {
    color: #3b4656;
    line-height: 1.85;
    text-align: left;
}

#about-us .news-col .row.display-flex {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin: 0 0 14px;
    padding: 10px 0;
    cursor: pointer;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

#about-us .news-col .row.display-flex:hover {
    transform: translateY(-6px) translateX(3px);
    box-shadow: var(--shadow-md);
}

#about-us .news-col .date {
    border-radius: 14px;
    overflow: hidden;
    transition: transform .35s var(--ease);
}

#about-us .news-col .row.display-flex:hover .date {
    transform: rotate(-3deg) scale(1.04);
}

#about-us .news-col .date.date1 {
    background: linear-gradient(135deg, #3a4a5e, #222b34);
}

#about-us .news-col .date.date2 {
    background: linear-gradient(135deg, #00b0f0, #2d7fd0);
}

#about-us .news-col .date.date3 {
    background: linear-gradient(135deg, #f5702b, #f9583c);
}

#about-us .news-col .date .month,
#about-us .news-col .date .day {
    font-family: 'Poppins', sans-serif;
}

/* ---------- facilities ---------- */
#facilities {
    background: #fff !important;
}

#facilities .col-md-3,
#facilities .col-sm-3,
#facilities .col-xs-6 {
    transition: transform .4s var(--ease);
}

#facilities .text-center>div {
    padding: 22px 10px 12px;
    border-radius: var(--radius);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s;
}

#facilities .text-center>div:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(180deg, #fff, var(--bg-soft));
}

#facilities img {
    transition: transform .5s var(--ease);
}

#facilities .text-center>div:hover img {
    transform: scale(1.18) rotate(-6deg);
}

/* ---------- gallery ---------- */
#events {
    background: var(--bg-soft);
}

.hes-gallery img {
    border-radius: 14px;
    transition: transform .5s var(--ease), box-shadow .5s, filter .5s !important;
}

.hes-gallery img:hover {
    transform: scale(1.04) !important;
    box-shadow: var(--shadow-md);
    filter: saturate(1.15);
}

/* ---------- documentary ---------- */
#documentary {
    position: relative;
    overflow: hidden;
}

#documentary iframe,
#documentary video {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* ---------- counters ---------- */
#counters {
    background: linear-gradient(120deg, #143a6b, #2d5f9c 50%, #3a7cca) !important;
    background-size: 200% 200%;
    animation: barShift 10s ease-in-out infinite alternate;
    color: #fff;
}

#counters img {
    transition: transform .5s var(--ease);
}

#counters .col-md-3:hover img,
#counters .col-sm-3:hover img {
    transform: translateY(-8px) scale(1.1);
}

#counters h2 {
    color: #fff !important;
    font-weight: 700;
    font-size: 42px;
}

#counters h3 {
    color: rgba(255, 255, 255, .85);
    font-weight: 400;
    font-size: 17px;
}

/* ---------- forms ---------- */
.form-control,
input[type=text],
input[type=email],
input[type=number],
input[type=password],
textarea,
select {
    border-radius: 12px !important;
    border: 1.5px solid #dfe5ee !important;
    box-shadow: none !important;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--brand-2) !important;
    box-shadow: 0 0 0 4px rgba(58, 124, 202, .15) !important;
    outline: 0;
}

#query {
    background: linear-gradient(180deg, var(--bg-soft), #fff) !important;
}

/* ---------- testimonials ---------- */
#testimonials {
    background-attachment: fixed;
    background-size: cover;
}

#testimonials .testimonial {
    transition: transform .4s var(--ease);
}

#testimonials .testimonial img {
    border-radius: 50% !important;
    border: 3px solid var(--accent);
}

/* ---------- inner page banner ---------- */
#banner {
    background: linear-gradient(120deg, #143a6b, #2d5f9c 55%, #3a7cca) !important;
    color: #fff;
    position: relative;
    overflow: hidden;
    text-align: center;
}

#banner::before,
#banner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    animation: blob 14s ease-in-out infinite alternate;
}

#banner::before {
    width: 320px;
    height: 320px;
    left: -80px;
    top: -120px;
}

#banner::after {
    width: 240px;
    height: 240px;
    right: -60px;
    bottom: -100px;
    animation-delay: -6s;
}

@keyframes blob {
    to {
        transform: translate(40px, 30px) scale(1.2);
    }
}

#banner h1 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-weight: 300;
    animation: pageIn .9s var(--ease) both;
}

#banner h1 span {
    font-weight: 700;
}

/* ---------- tables / images on inner pages ---------- */
.table {
    border-radius: 12px;
    overflow: hidden;
}

.table>thead>tr>th {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    border: 0;
}

.table-hover>tbody>tr {
    transition: background .2s, transform .2s;
}

img.img-responsive,
.img-thumbnail {
    border-radius: 12px;
}

/* ---------- footer ---------- */
footer {
    background: linear-gradient(160deg, #0f2742, #173e6b 60%, #1f4a80) !important;
    color: #dbe6f5 !important;
    padding-top: 50px !important;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--brand-2), var(--accent));
    background-size: 300% 100%;
    animation: barShift 6s linear infinite alternate;
}

footer a,
footer a:hover {
    color: #dbe6f5 !important;
}

footer h3 {
    color: #fff;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

footer h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 38px;
    height: 3px;
    border-radius: 3px;
    background: var(--accent);
}

footer ul li a {
    transition: transform .3s var(--ease), color .3s;
}

footer ul li a:hover {
    transform: translateX(6px);
    color: var(--accent-2) !important;
}

footer .view-on-map {
    display: inline-block;
    margin-top: 10px;
    padding: 7px 18px;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, .5);
    transition: all .3s var(--ease);
}

footer .view-on-map:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

footer img {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3));
}

.designed-by {
    background: rgba(0, 0, 0, .25) !important;
    color: #b9c8dd;
    padding: 12px 0;
    margin-top: 30px;
}

.designed-by a {
    color: #fff !important;
}

/* ---------- scroll reveal (applied by modern.js) ---------- */
.rv {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: var(--d, 0s);
    will-change: opacity, transform;
}

.rv.rv-left {
    transform: translateX(-40px);
}

.rv.rv-right {
    transform: translateX(40px);
}

.rv.rv-zoom {
    transform: scale(.92);
}

.rv.in {
    opacity: 1;
    transform: none;
}

/* ---------- accessibility ---------- */
@media (prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .rv {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

@media (max-width:768px) {
    section {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    #counters h2 {
        font-size: 32px;
    }

    #testimonials {
        background-attachment: scroll;
    }
}
