body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HEADER & NAVBAR SECTION
   ========================================================================== */
header {
    background-color: #1e293b;
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.main-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 40px; 
    border-bottom: 1px solid #334155; 
    padding-bottom: 20px;
}

.brand-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-title-row h2 {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 2.3rem;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.nav-logo-img {
    height: 82px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
}

.brand-subtitle {
    font-size: 20px;
    color: #ffffff;
    margin-top: 4px;
    padding-left: 80px;
}

.estd-pill {
    display: inline-block;
    align-self: flex-start;
    margin-left: -40px;
    margin-right: 20px;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.header-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
    padding-left: 40px;
}

/* --- Navigation Menu Links --- */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.nav-links a.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a.nav-link:hover {
    color: #38bdf8;
}

.nav-courses-trigger-btn {
    color: #38bdf8 !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-courses-trigger-btn:hover {
    color: #10b981 !important;
}

/* --- Standardized Navbar Buttons (Fixed Size Issue) --- */
.portal-btn,
.professional-portal-btn,
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0284c7;
    color: white !important;
    text-decoration: none;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 18px;          /* Uniform padding prevents oversized scaling */
    border-radius: 6px;
    border: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    white-space: nowrap;        /* Keeps 'Go to Dashboard →' clean on 1 line */
    height: 38px;               /* Explicit uniform structural height line-up */
    box-sizing: border-box;
}

.portal-btn:hover,
.professional-portal-btn:hover,
.btn-login:hover {
    background-color: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.3);
}

.portal-btn:active,
.professional-portal-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid #334155;
}

.hero h1 {
    font-size: 42px;
    margin: 0 0 20px 0;
    color: #f8fafc;
}

.hero h1 span {
    color: #38bdf8;
}

.hero p {
    font-size: 18px;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.hero-buttons-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.btn-cta,
.hero-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
    border: none;
}

.btn-cta:hover,
.hero-btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.hero-btn-secondary {
    background-color: #1e293b;
    color: #e2e8f0;
    text-decoration: none;
    border: 1px solid #334155;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.hero-btn-secondary:hover {
    background-color: #334155;
    color: white;
    border-color: #475569;
}

/* ==========================================================================
   ABOUT & VIDEO MATRIX SECTION
   ========================================================================== */
.about-section {
    padding: 60px 30px;
    background-color: #1e293b;
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
    margin-top: -20px;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid #334155;
    background-color: #0f172a; 
    height: 450px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-about-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #10b981;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 10;
}

.badge-years { font-size: 24px; font-weight: bold; color: white; }
.badge-text { font-size: 12px; color: #f1f5f9; line-height: 1.2; font-weight: 500; }

.section-tagline { color: #ff8800; font-size: 16px; font-weight: bold; letter-spacing: 1.5px; } /*#38bdf8*/
.about-content h2 { margin: 10px 0 20px 0; font-size: 32px; color: #f8fafc; }
.about-content p { color: #e8eaee; line-height: 1.7; font-size: 15px; }

.highlight-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.metric-box {
    background: #0f172a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #334155;
    text-align: center;
}

.metric-box h4 { margin: 0 0 5px 0; color: #ff7b00; font-size: 18px; }
.metric-box p { margin: 0; color: #38bdf8; font-size: 12px; }           

/* ==========================================================================
   FEATURES GRID LAYOUT
   ========================================================================== */
.features {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #ffffff;
}

.features-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    align-items: stretch;
    margin: 40px auto;
    max-width: 1200px;
}

.feature-glass-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.feature-glass-card.highlight-border {
    border-color: #475569;
}

.feature-glass-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.12);
}

.text-center-card {
    text-align: center;
    align-items: center;
}

.logo-canvas-white {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px;
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-bottom: 20px;
    border: 1px solid #475569;
}

.feature-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #0284c7;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.feature-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.feature-glass-card h3 {
    font-size: 20px;
    color: #f8fafc;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.feature-glass-card p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.feature-icon-wrapper {
    font-size: 36px;
    margin-bottom: 20px;
    background: rgba(56, 189, 248, 0.08);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.duration-meta {
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: left;
}

.btn-feature-action {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.2s ease;
    margin-top: auto;
}

.btn-feature-action.primary-blue {
    background: #0284c7;
    color: #ffffff;
}

.btn-feature-action.primary-blue:hover {
    background: #0369a1;
}

.btn-feature-action.outline-slate {
    background: #1e293b;
    color: #ffffff;
    border: 1px solid #475569;
}

.btn-feature-action.outline-slate:hover {
    background: #273549;
    color: #eeff00;
    border-color: #38bdf8;
}

.cta-register-btn {
    display: inline-block;
    background-color: #10b981;
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cta-register-btn:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

/* ==========================================================================
   SECURE DIGITAL PORTAL CARD
   ========================================================================== */
.secure-portal-card {
    background: linear-gradient(135deg, #1e293b 0%, #131c2e 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 35px 30px;
    margin: 40px auto;
    max-width: 1160px; /* Aligns smoothly with your 1200px max container padding */
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.secure-portal-icon {
    font-size: 24px;
    color: #f59e0b; /* A nice warning/gold color for security */
    background: rgba(245, 158, 11, 0.1);
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    margin-bottom: 4px;
}

.secure-portal-card h3 {
    margin: 0;
    font-size: 22px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.secure-portal-card p {
    margin: 0;
    color: #e7eaee;
    font-size: 15px;
    line-height: 1.6;
    max-width: 700px;
}

/* ==========================================================================
   SCROLLING TICKER LOOP
   ========================================================================== */
.scrolling-ticker-container {
    background-color: #0f172a;
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
    overflow: hidden;
    box-sizing: border-box;
    padding: 10px 0;
    width: 100%;
    display: flex;
}

.ticker-wrapper {
    display: flex;
    width: max-content;
    margin-bottom: 16px;
}

.ticker-item-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around;
    gap: 50px;
    padding-right: 50px;
    animation: continuousScroll 25s linear infinite;
}

.ticker-item-group span {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.scrolling-ticker-container:hover .ticker-item-group {
    animation-play-state: paused;
    cursor: pointer;
}

@keyframes continuousScroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ==========================================================================
   FLOATING INTERACTIVE SIDEBAR
   ========================================================================== */
.social-popup-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px 0 0 8px;
    width: 45px;
    box-shadow: -2px 4px 10px rgba(0, 0, 0, 0.3);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s;
    overflow: hidden;
    white-space: nowrap;
}

.social-icon {
    font-size: 20px;
    min-width: 25px;
    text-align: center;
    display: inline-block;
}

.social-text {
    margin-left: 12px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.social-item:hover {
    width: 140px;
}

.social-item:hover .social-text {
    opacity: 1;
}

.whatsapp { background-color: #25d366; }
.whatsapp:hover { background-color: #20ba5a; }
.instagram { background-color: #e1306c; }
.instagram:hover { background-color: #ca235d; }
.youtube { background-color: #ff0000; }
.youtube:hover { background-color: #e60000; }
.email { background-color: #0284c7; }
.email:hover { background-color: #0369a1; }

/* ==========================================================================
   INTERACTIVE BADGES & CONTACT TYPOGRAPHY
   ========================================================================== */
.header-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.5px;
    background: rgba(30, 41, 59, 0.5);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease-in-out;
}

.header-phone-link:hover {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
    transform: translateY(-1px);
}

.pulse-phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #10b981;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 9px;
    position: relative;
}

.pulse-phone-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.4;
    animation: contactPulse 2s infinite ease-out;
    z-index: -1;
}

.phone-number-text {
    transition: letter-spacing 0.2s ease;
}

.header-phone-link:hover .phone-number-text {
    letter-spacing: 0.8px;
}

@keyframes contactPulse {
    0% { transform: scale(1); opacity: 0.5; }
    70% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* ==========================================================================
   POPUP MODAL STRUCTURE RULES
   ========================================================================== */
.home-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.home-modal-box {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px;
    width: 90%;
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    animation: modalPopIn 0.25s ease-out;
}

@keyframes modalPopIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.home-modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-modal-header h2 { margin: 0; font-size: 20px; color: #38bdf8; }
.home-modal-close { background: none; border: none; color: #94a3b8; font-size: 28px; cursor: pointer; }
.home-modal-close:hover { color: #ef4444; }
.home-modal-body { padding: 24px; overflow-y: auto; flex-grow: 1; }
.modal-intro-text { margin: 0 0 20px 0; color: #94a3b8; font-size: 14px; }

.course-detail-row {
    background: #0f172a;
    border: 1px solid #233246;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.course-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.course-meta h4 { margin: 0; font-size: 16px; color: #f8fafc; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 700; color: white; }
.badge-pop { background: #f59e0b; }
.badge-gov { background: #a855f7; }
.badge-code { background: #0284c7; }
.course-detail-row p { margin: 0 0 12px 0; font-size: 13.5px; color: #cbd5e1; line-height: 1.5; }
.course-downloads { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.dl-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.dl-link.pdf { background: #22334e; color: #38bdf8; }
.dl-link.pdf:hover { background: #2e456a; }
.media-hint { font-size: 12px; color: #64748b; }
.home-modal-footer { padding: 16px 24px; border-top: 1px solid #334155; text-align: right; }

.modal-register-cta {
    display: inline-block;
    background-color: #0284c7;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background 0.2s;
}

.modal-register-cta:hover { background-color: #0369a1; }

/* ==========================================================================
   CONTACT DETAILS & MAP MATRIX
   ========================================================================== */
.contact-section {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 20px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    border-top: 1px solid #1e293b;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 1000px;
}

.contact-info h2 {
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 700;
}

.section-subtitle {
    color: #eaedf1;
    font-size: 15px;
    margin-bottom: 30px;
}

.info-card-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #1e293b;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #334155;
}

.info-icon { font-size: 34px; margin-top: 2px; }
.info-item h4 { margin: 0 0 4px 0; color: #38bdf8; font-size: 16px; font-weight: 600; }
.info-item p { margin: 0; color: #ffffff; font-size: 14px; line-height: 1.5; }
.contact-map { flex: 1; min-width: 300px; display: flex; align-items: center; }

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
footer {
    background-color: #0b0f19;
    border-top: 1px solid #334155;
    padding: 30px 0;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.footer-bottom {
    max-width: 1100px;
    margin: 40px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}