/* SAI PVT ITI extras on the Sridham Gurukulam theme */

.site-nav .nav-link {
    font-size: 14px;
    padding: 0.65rem 0.55rem !important;
    white-space: nowrap;
}

.site-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: transparent;
}

@media (min-width: 1200px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.feedback-tab {
    position: fixed;
    right: 0;
    top: 38%;
    z-index: 1040;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    background: var(--fs-primary);
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    padding: 16px 10px;
    border-radius: 6px 6px 0 0;
    text-decoration: none;
}

.feedback-tab:hover {
    background: var(--fs-primary-dark);
    color: #fff !important;
}

.admission-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: var(--fs-accent-red);
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 14px;
}

.admission-bar a {
    color: #fff;
    text-decoration: underline;
}

body.has-admission-bar {
    padding-bottom: 42px;
}

/* Homepage trades */
.trade-card {
    display: block;
    background: var(--fs-bg);
    border: 1px solid var(--fs-border);
    border-radius: 8px;
    padding: 28px 18px 22px;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    color: inherit;
}

.trade-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: var(--fs-primary);
    color: var(--fs-heading);
}

.trade-card img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 14px;
}

.trade-card span {
    display: block;
    font-weight: 700;
    color: var(--fs-heading);
}

.notice-board {
    background: var(--fs-bg);
    border: 1px solid var(--fs-border);
    border-radius: 8px;
    padding: 24px;
    height: 100%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.notice-board h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.notice-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--fs-border);
}

.notice-item:last-child {
    border-bottom: 0;
}

.notice-item .date {
    color: var(--fs-primary);
    font-size: 13px;
    font-weight: 700;
}

.notice-item h4 {
    font-size: 1rem;
    margin: 4px 0 6px;
}

.notice-card {
    background: var(--fs-bg);
    border: 1px solid var(--fs-border);
    border-radius: 8px;
    padding: 22px 22px 18px;
    height: 100%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.notice-card .date {
    color: var(--fs-primary);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.notice-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.notice-card p {
    margin-bottom: 0;
    white-space: pre-line;
}

.cta-split {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.cta-box {
    padding: 36px 32px;
    height: 100%;
    color: #fff;
}

.cta-box h3 {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 18px;
}

.cta-color-1 {
    background: #333333;
}

.cta-color-2 {
    background: var(--fs-primary);
}

.cta-box .btn-primary-custom {
    background: #fff;
    color: var(--fs-heading);
    border-color: #fff;
}

.cta-box .btn-primary-custom:hover {
    background: var(--fs-bg-alt);
    color: var(--fs-heading);
}

.partner-logo {
    background: var(--fs-bg);
    border: 1px solid var(--fs-border);
    border-radius: 8px;
    padding: 18px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-height: 64px;
    max-width: 100%;
    object-fit: contain;
}

.singel-patnar {
    background: var(--fs-bg);
    border: 1px solid var(--fs-border);
    border-radius: 8px;
    padding: 16px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.singel-patnar img {
    max-height: 64px;
    object-fit: contain;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--fs-bg);
    border: 1px solid var(--fs-border);
    border-radius: 8px;
    padding: 22px 12px;
    text-align: center;
}

.stat-card strong {
    display: block;
    font-size: 1.6rem;
    color: var(--fs-primary);
    font-weight: 800;
}

.stat-card span {
    display: block;
    color: var(--fs-muted);
    font-size: 14px;
    margin-top: 4px;
}

@media (max-width: 767px) {
    .stat-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Inner-page compatibility for existing PHP templates */
#page-banner {
    position: relative;
    background-color: #2b2b2b;
    background-size: cover;
    background-position: center;
    padding: 56px 0 48px !important;
    text-align: center;
}

#page-banner[data-overlay]::before,
#page-banner.bg_cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(33, 37, 41, 0.58);
}

#page-banner .container {
    position: relative;
    z-index: 1;
}

.page-banner-cont h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-banner-cont .breadcrumb {
    background: transparent;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.page-banner-cont .breadcrumb-item,
.page-banner-cont .breadcrumb-item a,
.page-banner-cont .breadcrumb-item.active,
.page-banner-cont .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.9);
}

.gray-bg {
    background: var(--fs-bg-section);
}

.section-title h5 {
    color: var(--fs-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    margin-bottom: 8px;
}

.section-title h2 {
    font-size: 1.7rem;
    font-weight: 700;
}

.about-cont p,
.events-left p,
.teachers-cont p,
.content-area p {
    margin-bottom: 1rem;
}

.main-btn,
.singel-form .main-btn,
button.main-btn {
    display: inline-block;
    background: var(--fs-primary);
    border: 1px solid var(--fs-primary-dark);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.main-btn:hover {
    background: var(--fs-primary-dark);
    color: #fff !important;
}

.singel-form input,
.singel-form textarea,
.main-form input,
.main-form textarea,
.main-form select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--fs-border);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-family: var(--fs-font);
    color: var(--fs-heading);
    background: #fff;
}

.singel-form textarea,
.main-form textarea {
    min-height: 140px;
    resize: vertical;
}

.events-left,
.events-right,
.contact-from,
.contact-address,
.teachers-left,
.about-image img {
    background: var(--fs-bg);
}

.events-left,
.contact-from,
.contact-address {
    background: var(--fs-bg);
    border: 1px solid var(--fs-border);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.events-right {
    background: transparent;
    padding: 0;
}

.events-address {
    background: var(--fs-bg);
    border: 1px solid var(--fs-border);
    border-radius: 8px;
    padding: 24px;
}

.singel-address {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.singel-address .icon {
    color: var(--fs-primary);
    font-size: 20px;
    width: 28px;
}

.singel-address h6 {
    margin-bottom: 2px;
}

.singel-teachers,
.content-card.staff-card,
.teachers-left {
    background: var(--fs-bg);
    border: 1px solid var(--fs-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.singel-teachers .image img,
.singel-teachers img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.singel-teachers .cont,
.singel-teachers .name {
    padding: 16px;
}

.singel-event {
    background: var(--fs-bg);
    border: 1px solid var(--fs-border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

#counter-part {
    position: relative;
    background-size: cover;
    background-position: center;
}

#counter-part[data-overlay]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(33, 37, 41, 0.7);
}

#counter-part .container {
    position: relative;
    z-index: 1;
}

.singel-counter span {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
}

.singel-counter p {
    color: rgba(255, 255, 255, 0.9);
}

.float-left { float: left !important; }
.float-right { float: right !important; }
.text-lg-left { text-align: left; }
.text-lg-right { text-align: right; }

.pt-40 { padding-top: 40px; }
.pt-45 { padding-top: 45px; }
.pt-50 { padding-top: 50px; }
.pt-65 { padding-top: 65px; }
.pt-70 { padding-top: 70px; }
.pt-90 { padding-top: 90px; }
.pt-105 { padding-top: 105px; }
.pt-115 { padding-top: 115px; }
.pt-120 { padding-top: 120px; }
.pt-150 { padding-top: 150px; }
.pb-25 { padding-bottom: 25px; }
.pb-45 { padding-bottom: 45px; }
.pb-70 { padding-bottom: 70px; }
.pb-80 { padding-bottom: 80px; }
.pb-110 { padding-bottom: 110px; }
.pb-120 { padding-bottom: 120px; }
.pb-130 { padding-bottom: 130px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }
.mb-0 { margin-bottom: 0; }

.table,
table {
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}
