/* Kamil School — institution-focused overrides */

:root {
    --kamil-primary: #1a5276;
    --kamil-accent: #e67e22;
    --kamil-gold: #f39c12;
    --kamil-light: #ebf5fb;
}

.topbar-area.dark-parimary-bg {
    background: var(--kamil-primary) !important;
}

.home1-modifiy .apply-btn,
.readon.banner-style,
.readon.primary {
    background: var(--kamil-accent) !important;
    border-color: var(--kamil-accent) !important;
}

.home1-modifiy .apply-btn:hover,
.readon.banner-style:hover {
    background: #d35400 !important;
}

.sec-title .sub-title.primary,
.sec-title .sub-title.primary-color {
    color: var(--kamil-accent) !important;
}

/* Hero — background image comes from admin (inline on #rs-banner), not CSS */
.rs-banner.style1.kamil-hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 120px 0 100px;
}

.rs-banner.kamil-hero .banner-title {
    font-size: 52px;
    line-height: 1.2;
    color: #fff;
    font-weight: 700;
}

.rs-banner.kamil-hero .desc {
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    max-width: 780px;
    margin: 0 auto 35px;
}

.rs-banner.kamil-hero .banner-badge {
    display: inline-block;
    background: var(--kamil-gold);
    color: #fff;
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
    text-transform: uppercase;
}

/* Stats strip */
.kamil-stats {
    background: var(--kamil-primary);
    padding: 0;
    margin-top: -1px;
}

.kamil-stats .stat-item {
    text-align: center;
    padding: 35px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.kamil-stats .stat-item:last-child {
    border-right: none;
}

.kamil-stats .stat-item i {
    font-size: 36px;
    color: var(--kamil-gold);
    margin-bottom: 12px;
    display: block;
}

.kamil-stats .stat-item h3 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.kamil-stats .stat-item p {
    margin: 0;
    font-size: 15px;
    opacity: 0.9;
}

/* Why choose us — facility cards */
.kamil-facilities .facility-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: 0 8px 30px rgba(26, 82, 118, 0.08);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--kamil-accent);
}

.kamil-facilities .facility-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(26, 82, 118, 0.14);
}

.kamil-facilities .facility-card .icon-wrap {
    width: 64px;
    height: 64px;
    background: var(--kamil-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.kamil-facilities .facility-card .icon-wrap i {
    font-size: 28px;
    color: var(--kamil-primary);
}

.kamil-facilities .facility-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--kamil-primary);
    margin-bottom: 10px;
}

.kamil-facilities .facility-card p {
    color: #666;
    margin: 0;
    line-height: 1.7;
}

/* Fix overlap — template uses negative margin for banner overlap; stats bar breaks that */
.kamil-site .rs-about.style1 .about-part,
.kamil-site .rs-about.style1 .notice-bord.style1 {
    margin-top: 0 !important;
}

.kamil-site .rs-about.style1 .notice-bord.style1 .title {
    background: var(--kamil-primary) !important;
}

.kamil-site .rs-about.style1 .notice-bord.style1 li .date {
    color: var(--kamil-primary);
    border-right-color: var(--kamil-primary);
}

.kamil-site .rs-banner.style1.kamil-hero {
    padding-bottom: 100px !important;
}

.kamil-course-photo img {
    width: 100%;
    max-width: 960px;
    border-radius: 12px;
    box-shadow: 0 10px 32px rgba(26, 82, 118, 0.12);
}

/* Programme cards */
.kamil-programmes .programme-card {
    background: #fff;
    border-radius: 12px;
    padding: 36px 30px;
    text-align: center;
    box-shadow: 0 6px 28px rgba(26, 82, 118, 0.08);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kamil-programmes .programme-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(26, 82, 118, 0.13);
}

.kamil-programmes .programme-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    background: linear-gradient(135deg, var(--kamil-primary), #2471a3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kamil-programmes .programme-icon i {
    font-size: 30px;
    color: #fff;
}

.kamil-programmes .programme-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--kamil-primary);
    margin-bottom: 12px;
}

.kamil-programmes .programme-card p {
    color: #666;
    margin: 0;
    line-height: 1.7;
    font-size: 15px;
}

/* Gallery intro + images side layout */
.kamil-gallery-preview .sec-title .desc {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
}

.kamil-gallery-page-intro {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
}

.kamil-gallery-page-intro .desc {
    color: #666;
    line-height: 1.8;
    font-size: 17px;
    margin-top: 15px;
}

.kamil-gallery-preview .gallery-img {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.kamil-gallery-preview .gallery-img img {
    width: 100%;
    transition: transform 0.4s ease;
}

.kamil-gallery-preview .gallery-img:hover img {
    transform: scale(1.06);
}

/* Simplified nav — hide cart, search, side drawer toggle */
.kamil-site .cart-inner,
.kamil-site .rs-search,
.kamil-site .nav-expander {
    display: none !important;
}

.kamil-site .logo-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--kamil-primary);
    text-decoration: none;
    line-height: 1.2;
}

.kamil-site .logo-text span {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--kamil-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Logo image + school name together */
.kamil-site .kamil-logo-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    max-width: 100%;
    line-height: 1.15;
    vertical-align: middle;
}

.kamil-site .full-width-header.home8-style4 .rs-header .menu-area .logo-cat-wrap,
.kamil-site .full-width-header.home8-style4 .rs-header .menu-area .logo-part {
    display: flex !important;
    align-items: center !important;
    line-height: normal !important;
    height: auto !important;
    float: none !important;
}

.kamil-site .full-width-header.home8-style4 .rs-header .menu-area .logo-part img {
    max-height: none !important;
}

.kamil-site .full-width-header.home8-style4 .rs-header .menu-area .row > .col-lg-2:first-child {
    display: flex;
    align-items: center;
}

.kamil-site .kamil-logo-brand .kamil-logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kamil-site .kamil-logo-brand .kamil-logo-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--kamil-primary);
    white-space: nowrap;
}

.kamil-site .kamil-logo-brand .kamil-logo-tag {
    font-size: 12px;
    font-weight: 500;
    color: var(--kamil-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.kamil-site .kamil-logo-brand--footer .kamil-logo-name {
    color: #fff;
}

.kamil-site .kamil-logo-brand--footer .kamil-logo-tag {
    color: var(--kamil-gold);
}

.kamil-site .kamil-logo-brand .kamil-logo-img {
    display: block;
    max-width: 58px;
    max-height: 58px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.kamil-site .footer-logo .kamil-logo-brand .kamil-logo-img {
    max-width: 62px;
    max-height: 62px;
}

.kamil-site .canvas-logo .kamil-logo-brand .kamil-logo-img {
    max-width: 62px;
    max-height: 62px;
}

.kamil-site .canvas-logo .kamil-logo-brand .kamil-logo-name {
    color: var(--kamil-primary);
}

/* Desktop — keep logo + text on one line, vertically centred in nav bar */
@media (min-width: 992px) {
    .kamil-site .full-width-header.home8-style4 .rs-header .menu-area .logo-part {
        position: relative !important;
        padding: 14px 0;
        min-width: 220px;
    }

    .kamil-site .full-width-header.home8-style4 .rs-header .menu-area .logo-cat-wrap {
        width: 100%;
    }

    .kamil-site .kamil-logo-brand {
        gap: 12px;
    }

    .kamil-site .kamil-logo-brand .kamil-logo-img {
        max-width: 62px;
        max-height: 62px;
    }

    .kamil-site .kamil-logo-brand .kamil-logo-name {
        font-size: 28px;
    }

    .kamil-site .kamil-logo-brand .kamil-logo-tag {
        font-size: 12px;
    }
}

/* Mobile — bigger logo/text, no overlap with menu button */
@media (max-width: 991px) {
    .kamil-site .full-width-header.home8-style4 .rs-header .menu-area .logo-part {
        position: relative !important;
        line-height: normal !important;
        height: auto !important;
        display: flex !important;
        align-items: center;
        padding: 12px 0;
        max-width: calc(100% - 60px);
    }

    .kamil-site .menu-area .row.y-middle {
        align-items: center !important;
    }

    .kamil-site .kamil-logo-brand {
        gap: 10px;
    }

    .kamil-site .kamil-logo-brand .kamil-logo-img {
        max-width: 54px;
        max-height: 54px;
    }

    .kamil-site .kamil-logo-brand .kamil-logo-name {
        font-size: 24px;
    }

    .kamil-site .kamil-logo-brand .kamil-logo-tag {
        font-size: 11px;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 400px) {
    .kamil-site .kamil-logo-brand .kamil-logo-name {
        font-size: 21px;
    }

    .kamil-site .kamil-logo-brand .kamil-logo-img {
        max-width: 48px;
        max-height: 48px;
    }
}

@media (max-width: 991px) {
    .rs-banner.kamil-hero .banner-title {
        font-size: 36px;
    }

    .kamil-stats .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
}

/* Detail modal — news, events, gallery */
.kamil-detail-modal {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.kamil-detail-modal .btn-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    background: #fff;
    border-radius: 50%;
    opacity: 1;
    padding: 10px;
}

.kamil-modal-img-wrap img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    display: block;
}

.kamil-detail-modal .modal-body {
    padding: 28px 32px 32px;
}

.kamil-detail-modal .kamil-modal-meta {
    display: block;
    font-size: 13px;
    color: var(--kamil-accent);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kamil-detail-modal h3 {
    font-size: 24px;
    color: var(--kamil-primary);
    margin-bottom: 14px;
    font-weight: 700;
}

.kamil-detail-modal p {
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* Clickable events */
.kamil-event-item {
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kamil-event-item:hover {
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(26, 82, 118, 0.12);
}

.kamil-read-more {
    cursor: pointer;
}

/* Teacher cards — disable template overlay that hides our content */
.kamil-site #rs-team.rs-team.style1 .kamil-team-card:after,
.kamil-site #rs-team.rs-team.style1 .kamil-team-card:hover:after,
.kamil-site #rs-team.rs-team.style1 .owl-item.center .kamil-team-card:after {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.kamil-site #rs-team .owl-item {
    position: relative;
    z-index: 1;
}

.kamil-site #rs-team .owl-item:hover {
    z-index: 10;
}

.kamil-site #rs-team .kamil-team-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--kamil-primary);
}

.kamil-site #rs-team .kamil-team-card > img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease, opacity 0.35s ease;
}

.kamil-site #rs-team .kamil-team-card .content-part {
    display: none !important;
}

.kamil-team-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    background: linear-gradient(to top, rgba(26, 82, 118, 0.98) 0%, rgba(26, 82, 118, 0.88) 70%, transparent 100%);
    color: #fff;
    padding: 22px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.kamil-team-card:hover .kamil-team-overlay {
    transform: translateY(0);
}

.kamil-team-card:hover > img {
    transform: scale(1.05);
    opacity: 0.85;
}

.kamil-team-overlay h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 4px;
}

.kamil-team-overlay .designation {
    color: var(--kamil-gold);
    font-weight: 600;
    font-size: 13px;
    display: block;
    margin-bottom: 8px;
}

.kamil-team-overlay .experience {
    font-size: 12px;
    opacity: 0.95;
    margin-bottom: 6px;
}

.kamil-team-overlay .bio {
    font-size: 12px;
    line-height: 1.55;
    opacity: 0.92;
    margin: 0;
}

.kamil-site #rs-team .sec-title .desc {
    color: #777;
    font-size: 15px;
    margin-top: 8px;
}

/* Student life highlights — distinct from Why Choose Us */
.kamil-student-life .life-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.kamil-student-life .life-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.kamil-student-life .life-card:hover img {
    transform: scale(1.08);
}

.kamil-student-life .life-card .life-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 24px;
    background: linear-gradient(transparent, rgba(26, 82, 118, 0.92));
    color: #fff;
}

.kamil-student-life .life-card .life-tag {
    display: inline-block;
    background: var(--kamil-gold);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.kamil-student-life .life-card h4 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 6px;
}

.kamil-student-life .life-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.kamil-gallery-popup {
    display: block;
    cursor: pointer;
}

.kamil-gallery-popup .gallery-caption-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 82, 118, 0.85);
    color: #fff;
    padding: 10px 14px;
    font-size: 13px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.kamil-gallery-preview .gallery-img,
.rs-gallery .gallery-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.kamil-gallery-preview .gallery-img:hover .gallery-caption-hint,
.rs-gallery .gallery-img:hover .gallery-caption-hint {
    transform: translateY(0);
}

@media (max-width: 767px) {
    .kamil-team-overlay {
        transform: translateY(0);
    }

    .kamil-team-card > img {
        opacity: 0.9;
    }

    .gallery-caption-hint {
        transform: translateY(0);
    }
}

