/* Custom Government School Theme - NON-MENU STYLES ONLY */
/* Menu styles have been moved to menu.css to avoid conflicts */

:root {
    --primary-green: #0b8043;
    --hover-green: #0d964f;
    --dark-green: #075e30;
    --bg-gray: #f5f5f5;
    --border-color: #e1e1e1;
    --text-color: #333333;
}

body.hi-tech-ittion {
    background-color: var(--bg-gray);
    font-family: 'SolaimanLipi', 'AdorshoLipi', Arial, sans-serif;
}

/* Fix parent container for sticky header */
.high-school-application > .container {
    position: static !important;
    overflow: visible !important;
    transform: none !important;
}

.high-school-application > .container > .sixteen.columns:first-of-type {
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
    overflow: visible !important;
}

/* Header Info */
.header-site-info {
    display: flex !important;
    align-items: center !important;
    padding: 20px 15px !important;
    background-color: #ffffff !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    border-bottom: 2px solid var(--primary-green) !important;
}
#logo {
    margin: 0 15px 0 0 !important;
    flex-shrink: 0 !important;
}
#logo img {
    height: 80px !important;
    width: auto !important;
    margin-right: 15px !important;
    border-radius: 50% !important;
    border: 3px solid var(--primary-green) !important;
}
#site-name-wrapper {
    float: none !important;
    padding: 0 !important;
    flex: 1 !important;
    text-align: center !important;
}
#site-name {
    font-size: 32px !important;
    line-height: 1.25 !important;
    text-shadow: none !important;
    margin: 0 !important;
}
#site-name a {
    font-size: 32px !important;
    font-weight: bold !important;
    color: var(--primary-green) !important;
    text-decoration: none !important;
    text-shadow: none !important;
}
#site-name a:link,
#site-name a:visited,
#site-name a:hover,
#site-name a:active {
    color: var(--primary-green) !important;
}

/* Main Content Notice Board */
#contents {
    margin: 26px 0;
}
#contents::after {
    content: '';
    display: block;
    clear: both;
}
.mainwrapper {
    width: 100%;
}
.mainwrapper .box {
    float: none;
    clear: both;
    width: auto;
    margin-bottom: 10px;
}
.home-gallery-section {
    background-color: #ffffff;
}
.home-gallery-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.home-gallery-header h4 {
    margin: 0 0 4px;
    font-size: 22px;
    color: var(--text-color);
}
.home-gallery-header p {
    margin: 0;
    color: #666666;
    font-size: 14px;
}
.home-gallery-tabs {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}
.home-gallery-tab {
    border: 1px solid var(--border-color);
    background-color: #f4f6f5;
    color: var(--text-color);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.home-gallery-tab.is-active {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: #ffffff;
}
.home-gallery-panel {
    display: none;
}
.home-gallery-panel.is-active {
    display: block;
}
.home-photo-gallery-top,
.home-photo-gallery-thumbs,
.home-video-player {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}
.home-video-frame-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: 10px;
    background-color: #111111;
    box-shadow: 0 2px 8px #eeeeee;
    min-height: 196px;
}
.home-video-frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.home-video-meta {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
}
.home-gallery-main-image,
.video-thumb img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px #eeeeee;
}
.home-gallery-thumb {
    width: 100px;
    height: 70px;
    cursor: pointer;
    opacity: 0.65;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
.home-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-photo-gallery-thumbs .swiper-slide-thumb-active,
.home-video-thumb-card.is-active {
    opacity: 1;
    border-color: #007bff;
}
.home-gallery-actions {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}
.home-gallery-actions .btn {
    background-color: var(--primary-green);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
}
.home-photo-prev,
.home-photo-next {
    color: #007bff;
}
.video-thumb,
.home-video-thumb-image-wrap {
    position: relative;
    display: block;
}
.video-thumb .play-btn,
.home-video-thumb-image-wrap .play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 57px;
}
.video-thumb .play-btn::after,
.home-video-thumb-image-wrap .play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 18px solid #ffffff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}
.home-video-thumb-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px auto 0;
    max-width: 700px;
}
.home-video-thumb-card {
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    border-radius: 8px;
    padding: 8px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.home-video-thumb-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}
.home-video-thumb-card.is-active {
    border-width: 2px;
    border-color: var(--primary-green);
    box-shadow: 0 6px 14px rgba(11, 128, 67, 0.12);
}
.home-video-thumb-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}
.home-video-thumb-title {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--text-color);
}
.notice-board-bg {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.notice-board-header {
    background-color: var(--primary-green);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    width: 110px;
    font-size: 18px;
    font-weight: bold;
}
.notice-board-ticker {
    flex: 1;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
}
.notice-board-ticker marquee {
    width: 100%;
}
.notice-board-action {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}
.notice-board-action .btn {
    background-color: #888888;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
}
.notice-list {
    width: 100%;
    padding: 15px;
}
.notice-content p {
    margin: 5px 0;
}
.service-box {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    width: auto;
    min-width: 0;
    margin-left: 0;
}
.service-box ul {
    list-style: none !important;
    padding-left: 0;
    margin: 0;
}
.service-box ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    list-style: none !important;
}
.service-box ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-green);
}
.service-box ul li a {
    color: #555555;
    text-decoration: none;
    font-size: 14px;
}
.service-box ul li a:hover {
    color: var(--primary-green);
    text-decoration: none;
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    border-radius: 3px;
    overflow: hidden;
}
.sidebar-widget-header {
    background-color: var(--primary-green);
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
}
.sidebar-widget-content {
    padding: 15px;
}
.sidebar-widget-content ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
}
.sidebar-widget-content li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    list-style: none !important;
}
.sidebar-widget-content li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-size: 12px;
}
.sidebar-widget-content li a {
    color: var(--text-color);
    text-decoration: none;
}
.sidebar-widget-content li a:hover {
    color: var(--primary-green);
}

/* Mobile Responsive Overrides */
@media (max-width: 768px) {
    /* Header Mobile Styles */
    .header-site-info,
    #header-site-info {
        padding: 10px 5px !important;
        text-align: center !important;
    }
    #logo {
        margin-right: 0 !important;
    }
    #logo img {
        height: 60px !important;
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
    #site-name,
    #site-name a {
        font-size: 20px !important;
    }

    /* Other Mobile Styles */
    .home-gallery-header {
        flex-direction: column !important;
    }
    .home-gallery-tabs {
        width: 100% !important;
    }
    .home-gallery-tab {
        flex: 1 1 auto !important;
        text-align: center !important;
    }
    .home-video-thumb-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .notice-board-bg {
        flex-direction: column !important;
        padding: 0 !important;
    }
    .notice-board-header {
        justify-content: center !important;
        padding: 10px !important;
    }
    .notice-board-ticker {
        width: 100% !important;
        padding: 5px 0px !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid var(--border-color) !important;
        border-bottom: 1px solid var(--border-color) !important;
    }
    .notice-board-action {
        width: 100% !important;
        padding: 5px !important;
    }
    .service-box {
        padding: 10px !important;
    }
    
    /* Mobile Video Styles */
    .home-gallery-main-image,
    .video-thumb img {
        max-height: 400px !important;
    }
}