/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bcw-1);
    color: var(--bcw-8);
    padding-top: 60px;
    padding-bottom: 50px;
}
/*
this is from theme.php
:root {
    --bcw-1: #f0f2f5;
    --bcw-2: #eaf2f8;
    --bcw-3: #d4e6f6;
    --bcw-4: #aed6f1;
    --bcw-5: #2e86c1;
    --bcw-6: #1a6da0;
    --bcw-7: #1a5276;
    --bcw-8: #333;
    --bcw-9: #666;
    --bcw-10: #eee;
    --bcw-white: #fff;
    --bcw-overlay: rgba(0, 0, 0, 0.5);
}
*/
/* ========== TITLE BAR ========== */
.title-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, var(--bcw-7), var(--bcw-5));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* NEW: */
.title-bar-left {
    /*width: 20px;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-bar-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}
.title-bar-center {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-icon,
.profile-icon {
    font-size: 24px;
    color: var(--bcw-white);
    cursor: pointer;
    transition: color 0.2s;
}

.menu-icon:hover,
.profile-icon:hover {
    color: var(--bcw-4);
}

.title-bar-center h1 {
    color: var(--bcw-white);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

/* ========== SIDE MENU ========== */
.side-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.side-menu.active {
    display: block;
}

.side-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bcw-overlay);
}

.side-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--bcw-white);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    background: linear-gradient(135deg, var(--bcw-7), var(--bcw-5));
    color: var(--bcw-white);
}

.side-menu-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.close-menu {
    font-size: 22px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-menu:hover {
    color: var(--bcw-4);
}

.side-menu-nav {
    padding: 12px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--bcw-8);
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s, color 0.2s;
}

.menu-item:hover {
    background: var(--bcw-2);
    color: var(--bcw-5);
}

.menu-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* ========== PROFILE DROPDOWN ========== */
.profile-dropdown {
    display: none;
    position: fixed;
    top: 60px;
    right: 10px;
    background: var(--bcw-white);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1500;
    min-width: 200px;
    overflow: hidden;
}

.profile-dropdown.active {
    display: block;
    animation: fadeDown 0.2s ease;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--bcw-8);
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
}

.profile-item:hover {
    background: var(--bcw-2);
    color: var(--bcw-5);
}

.profile-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    padding: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ========== SECTION HEADER ========== */
.content-section {
    margin-bottom: 30px;
}

.section-header {
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--bcw-7);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    font-size: 20px;
    color: var(--bcw-5);
}

.section-header .home-link {
    margin-left: auto;
    font-size: 12px;
    color: var(--bcw-5);
    text-decoration: none;
    padding: 2px 5px;
    border-radius: 15px;
    background: var(--bcw-3);
}
.section-header .home-link:hover {
    background: var(--bcw-5);
    color: #fff;
}



/* ========== CARDS GRID ========== */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* ========== CARD ========== */
.card {
    background: var(--bcw-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.advertise-this {
	position: relative;
    overflow: hidden;
    border: 3px solid var(--bcw-8);
    background: var(--bcw-3);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
}

@keyframes blinkStar {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.star-blink {
    color: var(--bcw-8);
    font-size: 14px;
    animation: blinkStar 1.2s ease-in-out infinite;
    margin-left: 4px;
}



.card-media {
    width: 100%;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 160px;
    max-height: 220px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.card-body {
    padding: 14px 16px 10px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--bcw-7);
    margin-bottom: 8px;
    line-height: 1.3;
    text-align: justify;
}

.card-description {
    font-size: 14px;
    color: var(--bcw-9);
    line-height: 1.5;
    margin-bottom: 6px;
    text-align: justify;
}
}

.card-actions {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px 14px;
    border-top: 1px solid var(--bcw-10);
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-action:active {
    transform: scale(0.97);
}

.btn-download {
    background: var(--bcw-5);
    color: var(--bcw-white);
}

.btn-download:hover {
    background: var(--bcw-6);
}

.btn-more {
    background: var(--bcw-2);
    color: var(--bcw-5);
}

.btn-more:hover {
    background: var(--bcw-3);
}

/* ========== BOTTOM BAR ========== */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(-180deg, var(--bcw-7), var(--bcw-8), var(--bcw-9));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.bottom-bar p {
    color: var(--bcw-white);
    font-size: 13px;
    text-align: center;
    opacity: 0.9;
}

/* ========== RESPONSIVE: TABLET (>= 600px) ========== */
@media (max-width: 600px) {
				.nav-text { display: none; }
				.menu-item2 { padding: 2px 4px !important; font-size: 10px !important;  color: var(--bcw-3) !important;}
				.menu-item2 i { font-size: 12px !important; }
			}
			

@media (min-width: 600px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-title {
        font-size: 17px;
    }

    .main-content {
        padding: 20px;
    }

}

/* ========== RESPONSIVE: SMALL DESKTOP (>= 900px) ========== */
@media (min-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .main-content {
        padding: 24px 30px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .card-media img {
        max-height: 200px;
    }

}

/* ========== RESPONSIVE: LARGE DESKTOP (>= 1200px) ========== */
@media (min-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .main-content {
        padding: 28px 40px;
    }

    .card-media img {
        max-height: 180px;
    }

}

/* ========== SCROLLBAR STYLING ========== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bcw-1);
}

::-webkit-scrollbar-thumb {
    background: var(--bcw-5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bcw-7);
}