/* ==========================================================
   SSPKM – mobile / tablet layer (loaded after modern.css)
   Looks + layout only. Form behaviour is untouched.
   ========================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
iframe,
embed,
object {
    max-width: 100%;
}

img {
    height: auto;
}

.container,
.container-fluid {
    max-width: 100%;
}

pre,
code {
    white-space: pre-wrap;
    word-break: break-word;
}

p,
li,
td,
h1,
h2,
h3,
h4 {
    overflow-wrap: anywhere;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

@media (hover:none) {

    a,
    button,
    .btn,
    input[type=submit] {
        -webkit-tap-highlight-color: rgba(249, 88, 60, .18);
    }
}

@media (max-width:991px) {
    .container {
        width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }

    #testimonials {
        background-attachment: scroll !important;
    }
}

@keyframes menuIn {
    from {
        opacity: 0;
        transform: translateY(-14px) scale(.97);
    }

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

@media (max-width:767px) {
    html {
        font-size: 15px;
    }

    body {
        font-size: 15px;
        line-height: 1.65;
    }

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

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 25px;
    }

    h3 {
        font-size: 21px;
    }

    /* ---- header ---- */
    #header {
        z-index: 1500 !important;
    }

    #header:not(.sticky) {
        position: relative;
    }

    #header.sticky {
        position: fixed;
    }

    header {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        background: rgba(255, 255, 255, .97) !important;
    }

    header .top-header {
        padding: 6px 0;
        text-align: center;
    }

    header .top-header .social {
        text-align: center !important;
    }

    header .logo {
        margin: 0;
        padding: 6px 0;
    }

    header .logo img {
        width: 77px !important;
        margin: 0 !important;
    }

    .sticky .logo img {
        width: 54px !important;
    }

    .menu-btn {
        margin-top: 14px !important;
        padding: 9px 14px !important;
        font-size: 14px !important;
        font-weight: 600;
        border: 0 !important;
        letter-spacing: .06em;
        box-shadow: 0 6px 16px rgba(45, 95, 156, .35);
    }

    .menu-btn .fa {
        margin-right: 4px;
        transition: transform .3s var(--ease);
    }

    .mobile-li.open .menu-btn .fa {
        transform: rotate(90deg);
    }

    header .mobile-ul {
        margin: 0;
    }

    header .mobile-ul .mobile-li:hover>.mobile-nav {
        display: none;
    }

    header .mobile-ul .mobile-li.open>.mobile-nav {
        display: block;
    }

    header .mobile-nav {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        top: 70px !important;
        margin: 0 !important;
        padding: 8px 0 !important;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #0f2742 !important;
        border-radius: 18px !important;
        opacity: 1 !important;
        box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
        animation: menuIn .35s var(--ease);
    }

    .sticky .mobile-nav {
        top: 62px !important;
    }

    header .mobile-nav li {
        text-align: left !important;
        border-bottom: 1px solid rgba(255, 255, 255, .07);
    }

    header .mobile-nav li:last-child {
        border-bottom: 0;
    }

    header .mobile-nav li>a {
        display: block !important;
        margin: 0 !important;
        padding: 14px 20px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #fff !important;
        border: 0 !important;
        white-space: normal !important;
        border-radius: 0 !important;
    }

    header .mobile-nav li>a.active,
    header .mobile-nav li>a:hover {
        color: var(--accent-2) !important;
        background: rgba(255, 255, 255, .05);
        border: 0 !important;
    }

    header .mobile-nav li.submenu>a::after,
    header .mobile-nav li.subsubmenu>a::after {
        content: "\f078";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        float: right;
        font-size: 11px;
        opacity: .7;
        transition: transform .3s;
    }

    header .mobile-nav li.submenu.open>a::after,
    header .mobile-nav li.subsubmenu.open>a::after {
        transform: rotate(180deg);
    }

    header .mobile-nav li.submenu:hover>ul,
    header .mobile-nav li.subsubmenu:hover>ul {
        display: none;
    }

    header .mobile-nav li.submenu.open>ul,
    header .mobile-nav li.subsubmenu.open>ul {
        display: block;
        animation: menuIn .25s var(--ease);
    }

    header .mobile-nav li.submenu ul,
    header .mobile-nav li.subsubmenu ul {
        position: static !important;
        background: rgba(255, 255, 255, .06) !important;
        margin: 0;
        width: 100%;
    }

    header .mobile-nav li.submenu ul li a {
        font-weight: 400 !important;
        font-size: 14px !important;
        padding: 11px 20px 11px 34px !important;
    }

    header .mobile-nav li.subsubmenu ul li a {
        padding-left: 50px !important;
    }

    /* ---- hero ---- */
    #slider {
        margin-top: 0 !important;
    }

    .carousel-indicators {
        bottom: 8px;
    }

    .carousel-indicators li {
        width: 9px;
        height: 9px;
    }

    .carousel-indicators .active {
        width: 24px;
        height: 9px;
    }

    .carousel-control {
        display: none;
    }

    /* ---- home sections ---- */
    #about-us .content p {
        font-size: 15px;
        text-align: left !important;
    }

    #facilities .text-center>[class*='col-'] {
        width: 50%;
        float: left;
    }

    #facilities .text-center {
        overflow: hidden;
    }

    #about-us .news-col .row.display-flex {
        display: block;
        margin-left: 0;
        margin-right: 0;
    }

    #about-us .news-col .row.display-flex>[class*='col-'] {
        display: block;
        width: 100%;
        float: none;
    }

    #about-us .news-col .date {
        margin: 0 auto 10px !important;
    }

    #about-us .news-col p,
    #about-us .news-col .tag {
        margin-left: 0 !important;
        text-align: center;
    }

    #facilities .text-center>div {
        padding: 14px 6px 8px;
    }

    #facilities img {
        width: 68px;
        margin-top: 6px;
    }

    #facilities p {
        font-size: 13px;
        text-align: center;
    }

    #events .col-md-3,
    #events .col-sm-3 {
        width: 50%;
        float: left;
        padding: 4px;
    }

    .hes-gallery img {
        width: 100%;
    }

    #documentary iframe {
        width: 100% !important;
        height: 220px !important;
    }

    #counters {
        padding: 26px 0;
    }

    #counters [class*='col-'] {
        width: 50%;
        float: left;
        margin-bottom: 18px;
    }

    #counters img {
        width: 60px;
    }

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

    #counters h3 {
        font-size: 14px;
    }

    #advertisement img {
        width: 100%;
    }

    /* ---- inner pages ---- */
    #banner {
        height: auto !important;
        padding: 60px 0 30px;
    }

    #banner h1 {
        margin-top: 30px !important;
        font-size: 32px !important;
    }

    .row {
        margin-left: -8px;
        margin-right: -8px;
    }

    [class*='col-xs-'],
    [class*='col-sm-'],
    [class*='col-md-'],
    [class*='col-lg-'] {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* wide tables scroll inside themselves; the page never scrolls sideways */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* ---- forms (looks only, behaviour untouched) ---- */
    .form-control,
    input[type=text],
    input[type=email],
    input[type=number],
    input[type=password],
    input[type=tel],
    input[type=date],
    textarea,
    select {
        font-size: 16px !important;
        /* stops iOS zoom-on-focus */
        min-height: 46px;
        width: 100%;
    }

    textarea {
        min-height: 100px;
    }

    label {
        font-weight: 500;
        margin-bottom: 4px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .btn,
    button[type=submit],
    input[type=submit] {
        min-height: 46px;
    }

    .modal-dialog {
        margin: 12px !important;
        width: auto !important;
    }

    .modal-body {
        max-height: 75vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-body a h3 {
        font-size: 16px;
    }

    .modal-content {
        border-radius: 18px;
        border: 0;
        overflow: hidden;
    }

    /* ---- footer ---- */
    footer {
        padding-top: 36px !important;
    }

    footer .row>[class*='col-'] {
        margin-bottom: 22px;
        text-align: center;
    }

    footer .footer-column-content {
        width: auto !important;
        margin: 0 !important;
    }

    footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    footer ul li a {
        padding: 8px 0;
    }

    .designed-by .col-md-6,
    .designed-by .col-sm-6 {
        text-align: center;
        margin: 4px 0;
    }

    .scroll-top {
        width: 44px !important;
        height: 44px !important;
        right: 14px !important;
        bottom: 16px !important;
    }
}

@media (max-width:420px) {
    html {
        font-size: 14.5px;
    }

    header .logo img {
        width: 77px !important;
    }
}

/* mobile menu: page that is open right now */
@media (max-width:767px) {
    header .mobile-nav li>a.is-current {
        color: var(--accent-2) !important;
        background: rgba(255, 255, 255, .08);
    }

    header .mobile-nav li>a.has-current {
        color: var(--accent-2) !important;
    }
}