/* ==========================================================================
   Modern Corporate & Tech Theme (SouthernLink Inspiration)
   Thí Nghiệm Điện Cần Thơ - ISO/IEC 17025:2017 (VILAS 865)
   ========================================================================== */

:root {
    --tech-primary: #0284C7;        /* Electric / Tech Blue */
    --tech-primary-hover: #0369A1;
    --tech-primary-subtle: #F0F9FF;
    --tech-evn-blue: #004890;       /* EVN Identity Blue */
    
    --tech-dark: #0F172A;           /* Deep Corporate Navy */
    --tech-slate: #1E293B;
    --tech-text-main: #334155;
    --tech-text-muted: #64748B;
    
    --tech-bg: #F8FAFC;             /* Clean subtle slate background */
    --tech-surface: #FFFFFF;
    --tech-border: #E2E8F0;
    --tech-border-focus: #38BDF8;
    
    --tech-shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
    --tech-shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
    --tech-shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.12);
}

/* Global Reset & Typography */
body {
    background-color: var(--tech-bg) !important;
    background-image: none !important;
    color: var(--tech-text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.01em;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

main[role="main"] {
    flex: 1 0 auto;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

/* ==========================================================================
   Navbar Styling (Minimalist, Corporate, No loud colors)
   ========================================================================== */
.tech-navbar {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tech-border) !important;
    box-shadow: var(--tech-shadow-sm);
    padding: 0.6rem 0;
    transition: all 0.25s ease;
}

.tech-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.tech-brand img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.tech-brand-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tech-dark);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
}

.tech-brand-sub {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--tech-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

/* Nav links */
.tech-navbar .nav-link {
    color: var(--tech-text-main) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.tech-navbar .nav-link:hover,
.tech-navbar .nav-link:focus {
    color: var(--tech-primary) !important;
    background-color: var(--tech-primary-subtle);
}

.tech-navbar .nav-link.show {
    color: var(--tech-primary) !important;
    background-color: var(--tech-primary-subtle);
}

/* Mobile Toggler Button (Hamburger 3 vạch) */
.tech-navbar .navbar-toggler,
.tech-navbar-toggler {
    padding: 0.45rem 0.65rem;
    font-size: 1.15rem;
    border: 1px solid var(--tech-border) !important;
    border-radius: 8px;
    background-color: #FFFFFF;
    box-shadow: var(--tech-shadow-sm);
    transition: all 0.2s ease;
}

.tech-navbar .navbar-toggler:focus,
.tech-navbar .navbar-toggler:hover,
.tech-navbar-toggler:focus,
.tech-navbar-toggler:hover {
    outline: none;
    border-color: var(--tech-primary) !important;
    background-color: var(--tech-primary-subtle);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

.tech-navbar .navbar-toggler-icon {
    width: 1.4em;
    height: 1.4em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230F172A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Mobile Navbar Collapse Responsive Styling */
@media (max-width: 1199.98px) {
    .tech-brand img {
        height: 36px;
    }
    .tech-brand-title {
        font-size: 0.95rem;
    }
    .tech-brand-sub {
        font-size: 0.68rem;
    }

    .tech-navbar .navbar-collapse {
        background: #FFFFFF;
        margin-top: 0.85rem;
        padding: 1rem;
        border-radius: 12px;
        border: 1px solid var(--tech-border);
        box-shadow: var(--tech-shadow-lg);
        max-height: calc(100vh - 85px);
        overflow-y: auto;
    }

    .tech-navbar .nav-link {
        padding: 0.65rem 0.85rem !important;
        font-size: 0.95rem;
    }

    .tech-dropdown-menu {
        box-shadow: none !important;
        border: 1px solid var(--tech-border) !important;
        background-color: var(--tech-bg) !important;
        margin: 0.4rem 0 0.6rem 0;
        padding: 0.5rem !important;
    }

    .tech-btn-cta {
        display: flex;
        justify-content: center;
        width: 100%;
        text-align: center;
        padding: 0.65rem 1rem !important;
    }
}

/* Primary CTA Button on Navbar */
.tech-btn-cta {
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.15rem !important;
    border-radius: 8px;
    border: none !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tech-btn-cta:hover {
    background: linear-gradient(135deg, #0369A1 0%, #075985 100%) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
}

/* Dropdown Menu Refinement */
.tech-dropdown-menu {
    border: 1px solid var(--tech-border) !important;
    border-radius: 12px !important;
    box-shadow: var(--tech-shadow-lg) !important;
    padding: 0.6rem !important;
    min-width: 280px;
    background: #FFFFFF !important;
    animation: fadeInSlide 0.2s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tech-dropdown-menu .dropdown-item {
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    color: var(--tech-text-main);
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.tech-dropdown-menu .dropdown-item:hover {
    background-color: var(--tech-primary-subtle);
    color: var(--tech-primary);
}

.tech-dropdown-menu .item-heading {
    font-weight: 600;
    color: var(--tech-dark);
    display: block;
    margin-bottom: 2px;
}

.tech-dropdown-menu .item-desc {
    font-size: 0.78rem;
    color: var(--tech-text-muted);
    display: block;
    line-height: 1.3;
}

.tech-dropdown-menu .dropdown-divider {
    border-color: var(--tech-border);
    margin: 0.4rem 0;
}

/* Dropdown Inline Form Sections */
.tech-dropdown-form-box {
    background: #F8FAFC;
    border: 1px solid var(--tech-border);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0.25rem 0;
}

.tech-dropdown-form-box .form-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tech-slate);
    margin-bottom: 0.4rem;
    display: block;
}

/* Logo PC Cần Thơ container */
.tech-pcct-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.tech-pcct-logo:hover {
    opacity: 0.88;
}

/* ==========================================================================
   Corporate Footer
   ========================================================================== */
.tech-footer {
    background-color: var(--tech-dark) !important;
    color: #94A3B8;
    border-top: 1px solid #1E293B;
    padding-top: 3rem;
    padding-bottom: 1.5rem;
    margin-top: auto;
}

.tech-footer h5,
.tech-footer h6 {
    color: #F8FAFC;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.tech-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.tech-footer-links a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

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

.tech-footer-bottom {
    border-top: 1px solid #1E293B;
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.82rem;
    color: #64748B;
}

.tech-badge-vilas {
    display: inline-block;
    color: #38BDF8;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: transparent;
    border: none;
    padding: 0;
}

/* ==========================================================================
   Buttons & UI Elements (Tech style)
   ========================================================================== */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background-color: var(--tech-primary-hover) !important;
    border-color: var(--tech-primary-hover) !important;
}

.btn-outline-primary {
    color: var(--tech-primary) !important;
    border-color: var(--tech-primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--tech-primary) !important;
    color: #FFFFFF !important;
}

/* Form Controls */
.form-control, .form-select {
    border: 1.5px solid var(--tech-border);
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    font-size: 0.92rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--tech-primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}


/* Bottom-most Sub Bar for Partner Logo */
.tech-sub-bottom-bar {
    background: #FFFFFF;
    border-top: 1px solid var(--tech-border);
    padding: 6px 0;
    margin: 0;
}

.tech-sub-bottom-bar a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.tech-sub-bottom-bar img {
    height: 34px;
    width: auto;
    display: block;
}
