/* ========================================
   Channab Base Styles
   Global styles for all public-facing pages
   ======================================== */

:root {
    --primary-color: #0da487;
    --primary-dark: #0b8c73;
    --secondary-color: #064e40;
    --text-dark: #2b2b2b;
    --text-light: #6e6e6e;
    --white: #ffffff;
    --bg-light: #f8f9fa;

    /* Responsive Font Sizes */
    --h1-size: clamp(2rem, 5vw, 3.5rem);
    --h2-size: clamp(1.5rem, 4vw, 2.5rem);
    --h3-size: clamp(1.2rem, 3vw, 1.8rem);
    --body-size: clamp(0.875rem, 2vw, 1rem);
    --small-size: clamp(0.75rem, 1.5vw, 0.875rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: var(--body-size);
}

h1, .h1 {
    font-size: var(--h1-size);
    line-height: 1.2;
    font-weight: 800;
}

h2, .h2 {
    font-size: var(--h2-size);
    line-height: 1.3;
    font-weight: 700;
}

h3, .h3 {
    font-size: var(--h3-size);
    line-height: 1.4;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

/* ========================================
   Top Bar
   ======================================== */
.top-bar {
    background: var(--secondary-color);
    padding: 0.45rem 0;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.top-bar a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-bar a:hover {
    color: #fff;
}

.top-bar-social a {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.top-bar-social a:hover {
    background: var(--primary-color);
    color: #fff;
}

.top-bar-divider {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.25);
}

.top-bar-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    padding: 0.65rem 0;
    background-color: var(--white);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    transition: all 0.35s ease;
    z-index: 1040;
}

.navbar-scrolled {
    padding: 0.45rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    text-decoration: none;
    gap: 0.5rem;
}

.navbar-brand:hover {
    color: var(--primary-color);
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.brand-text {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.navbar-brand img {
    height: clamp(30px, 5vw, 40px);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
    font-size: 0.92rem;
    padding: 0.5rem 0.9rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 60%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.navbar .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Dropdown toggle override: don't show underline on caret pseudo-element */
.nav-link.dropdown-toggle::after {
    position: static;
    width: auto;
    height: auto;
    background: none;
    transform: none;
}

.nav-login {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.45rem 0.75rem !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-login::after {
    display: none !important;
}

.nav-login:hover {
    color: var(--primary-color) !important;
}

.btn-nav-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff !important;
    border: none;
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    text-transform: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(13, 164, 135, 0.3);
}

.btn-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(13, 164, 135, 0.4);
    color: #fff !important;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white);
        padding: 1.25rem;
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
        margin-top: 0.75rem;
        border: 1px solid rgba(0,0,0,0.06);
    }

    .nav-item {
        margin: 0.25rem 0;
    }

    .navbar-actions {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.5rem !important;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #e9ecef;
    }

    .nav-login {
        text-align: center;
    }

    .btn-nav-cta {
        text-align: center;
        display: block;
    }

    .nav-link::after {
        display: none;
    }
}

/* Mega Menu Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border-radius: 14px;
    padding: 0.75rem 0;
    border: 1px solid rgba(0,0,0,0.04);
}

.mega-menu {
    min-width: 650px;
    padding: 1.5rem 1.75rem;
}

.mega-menu .mega-menu-category {
    margin-bottom: 0.75rem;
}

.mega-menu .mega-menu-category h6 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-light);
    margin-bottom: 0.65rem;
    padding: 0 0.5rem;
    font-weight: 700;
}

.mega-menu .dropdown-item {
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.mega-menu .dropdown-item i {
    width: 22px;
    text-align: center;
    margin-right: 0.5rem;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.mega-menu .dropdown-item:hover {
    background-color: rgba(13, 164, 135, 0.08);
    color: var(--primary-color);
    transform: translateX(3px);
}

.mega-menu-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.mega-menu-footer a {
    display: block;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.mega-menu-footer a:hover {
    background-color: rgba(13, 164, 135, 0.08);
}

@media (max-width: 991px) {
    .mega-menu {
        min-width: auto;
        padding: 0.5rem;
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    padding: clamp(0.5rem, 2vw, 0.8rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 50px;
    font-weight: 600;
    font-size: var(--body-size);
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

/* ========================================
   Layout & Spacing
   ======================================== */
.section-spacing {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.container {
    padding-left: clamp(1rem, 3vw, 1.5rem);
    padding-right: clamp(1rem, 3vw, 1.5rem);
}

/* Responsive Spacing Utilities */
.mb-responsive {
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.pb-responsive {
    padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.pt-responsive {
    padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: linear-gradient(180deg, #1a1f2e 0%, #111520 100%);
    color: var(--white);
    position: relative;
}

.footer-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

.footer-main {
    padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}

/* Footer Brand */
.footer-logo {
    text-decoration: none;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    display: inline-flex !important;
}

.footer-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}

.footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 0.6rem 1.25rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-app-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    color: white;
    transform: translateY(-2px);
}

.footer-app-btn i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.footer-app-btn span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-app-btn span small {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer Heading */
.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1.25rem;
    color: white;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
    align-items: flex-start;
}

.footer-contact .contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(13, 164, 135, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.footer-contact div a,
.footer-contact div span {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.footer-contact div a:hover {
    color: var(--primary-color);
}

.text-muted-light {
    color: rgba(255,255,255,0.4) !important;
    font-size: 0.8rem !important;
}

/* Footer Bottom */
.footer-bottom {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

.footer-dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    vertical-align: middle;
    margin: 0 0.6rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 164, 135, 0.35);
    z-index: 1050;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Legacy social links (keep for any pages that still use the old class) */
.social-links a {
    color: var(--white);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.social-links a:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: translateY(-3px);
}

/* ========================================
   Cards
   ======================================== */
.card {
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-body {
    padding: clamp(1.25rem, 3vw, 1.5rem);
}

.card-title {
    font-size: var(--h3-size);
    margin-bottom: 1rem;
}

.card-text {
    font-size: var(--body-size);
    color: var(--text-light);
}

/* ========================================
   Images
   ======================================== */
.img-fluid {
    border-radius: 10px;
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: clamp(5px, 1vw, 10px);
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========================================
   Text Utilities
   ======================================== */
.text-responsive {
    font-size: var(--body-size);
}

.lead {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

/* ========================================
   Mobile Button Stack
   ======================================== */
@media (max-width: 576px) {
    .btn-stack-mobile {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* ========================================
   Breadcrumbs
   ======================================== */
.breadcrumb-section {
    background: var(--bg-light);
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    margin-bottom: 0;
    font-size: var(--small-size);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-light);
}
