/* ==========================================================================
   NSRIC Immigration and Visa Consulting (NIVC) — Header & Global Styles
   Exact Pixel-Perfect Replica from Wayback Reference Screenshot
   ========================================================================== */

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

body {
    font-family: Arial, "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #000000;
    background-color: #ffffff;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   1. TOP UTILITY BAR (Dark Navy/Indigo with Circular Social Badges)
   ========================================================================== */
.topbar {
    background-color: #0a1138;
    color: #ffffff;
    padding: 9px 0;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.1px;
}

.topbar-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.topbar-link {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}

.topbar-link:hover {
    color: #38bdf8;
}

.topbar-dropdown {
    position: relative;
    display: inline-block;
}

.topbar-dropdown-trigger {
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.topbar-dropdown-trigger:hover {
    color: #38bdf8;
}

.topbar-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 6px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.2s ease;
}

.topbar-dropdown:hover .topbar-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.topbar-dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
}

.topbar-dropdown-item:hover {
    background-color: #f1f5f9;
    color: #2575c0;
}

/* Topbar Tools & Socials */
.topbar-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-search-btn {
    background: transparent;
    color: #00b4d8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    transition: transform 0.15s ease;
}

.topbar-search-btn:hover {
    transform: scale(1.1);
}

.social-circle-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-circle-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.15s ease;
}

.social-circle-btn:hover {
    transform: translateY(-1px);
}

.social-fb { background-color: #1877f2; }
.social-x  { background-color: #000000; }
.social-yt { background-color: #ff0000; }
.social-li { background-color: #0077b5; border-radius: 2px; }
.social-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-tg { background-color: #0088cc; }

/* ==========================================================================
   2. MAIN HEADER SECTION (Exact layout from user screenshot)
   ========================================================================== */
.main-header {
    background-color: #ffffff;
    padding: 24px 0 18px;
}

.header-grid {
    display: grid;
    grid-template-columns: 320px 1fr 300px;
    align-items: flex-start;
    gap: 20px;
}

/* Left: WhatsApp, Call & Toronto Clock */
.header-left {
    display: flex;
    flex-direction: column;
}

.header-phone-line {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-phone-line a {
    color: #0a1138;
    font-weight: 700;
    transition: color 0.2s ease;
}

.header-phone-line a:hover {
    color: #2563eb;
}

.header-phone-sub {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    margin-top: 4px;
    padding-left: 20px;
}

.header-phone-sub a {
    color: #0a1138;
    font-weight: 700;
    transition: color 0.2s ease;
}

.header-phone-sub a:hover {
    color: #2563eb;
}

.clock-box-left {
    margin-top: 14px;
    text-align: center;
    width: 100%;
    max-width: 220px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 16px;
    box-shadow: 0 2px 8px rgba(10, 17, 56, 0.04);
}

.clock-title {
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.2;
}

.clock-subtitle {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.25;
    margin-top: 2px;
}

.clock-time {
    font-size: 20px;
    font-weight: 800;
    color: #0a1138;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

/* Center: Official Vector Logo & Tagline */
.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 6px;
}

.header-logo-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.header-logo-link:hover {
    transform: scale(1.015);
}

.main-nivc-logo {
    max-width: 85px !important;
    width: 85px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

.broken-logo-wrapper {
    display: none;
}

.header-tagline {
    margin-top: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: #475569;
    text-align: center;
    letter-spacing: 0.2px;
    max-width: 480px;
}

/* Right: Email us now & Local Time Clock */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header-email-block {
    text-align: right;
    width: 100%;
    max-width: 230px;
}

.header-email-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.3;
}

.header-email-address {
    font-size: 16px;
    font-weight: 700;
    color: #0a1138;
    margin-top: 2px;
}

.header-email-address a {
    color: #0a1138;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-email-address a:hover {
    color: #2563eb;
}

.clock-box-right {
    margin-top: 14px;
    text-align: center;
    width: 100%;
    max-width: 220px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 16px;
    box-shadow: 0 2px 8px rgba(10, 17, 56, 0.04);
}

.clock-title-right {
    font-size: 12px;
    font-weight: 700;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.2;
}

.clock-time-right {
    font-size: 20px;
    font-weight: 800;
    color: #0a1138;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   3. AUTHORIZED & REGISTERED BANNER (Clean White Crisp Card Banner)
   ========================================================================== */
.auth-notice-section {
    background-color: #ffffff;
    text-align: center;
    padding: 12px 0 14px;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.auth-notice-line1 {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.auth-notice-line2 {
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    margin-top: 3px;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

/* ==========================================================================
   4. MAIN NAVIGATION (Exact: Home is dark navy button, Contact Us is blue button)
   ========================================================================== */
.main-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 6px 0;
}

.nav-menu-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
}

/* Hover effect: exactly matches the Home button look (Dark navy #0a1138, white text) */
.nav-link:hover,
.nav-item:hover > .nav-link {
    background-color: #0a1138 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(10, 17, 56, 0.25);
    transform: translateY(-1px);
}

.nav-link:hover .nav-caret,
.nav-item:hover > .nav-link .nav-caret {
    color: #ffffff !important;
}

/* Clicked / Active state: persists the dark navy button look */
.nav-link.active {
    background-color: #0a1138 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(10, 17, 56, 0.25);
}

.nav-link.active .nav-caret {
    color: #ffffff !important;
}

/* Dropdown Caret */
.nav-caret {
    font-size: 11px;
    margin-left: 2px;
    transition: color 0.2s ease-in-out;
}

/* Contact Us Button (Blue by default, Dark Navy on hover) */
.nav-btn-contact {
    background-color: #2575c0;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 8px 22px;
    border-radius: 4px;
    display: inline-block;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(37, 117, 192, 0.3);
}

.nav-btn-contact:hover {
    background-color: #0a1138 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(10, 17, 56, 0.35);
    transform: translateY(-1px);
}

.nav-btn-contact.active {
    background-color: #0a1138 !important;
    color: #ffffff !important;
}

/* Main Navigation Dropdown Flyout */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    padding: 6px 0;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.2s ease;
}

.nav-item:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-link {
    display: block;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: #1e293b;
}

.nav-dropdown-link:hover {
    background-color: #f1f5f9;
    color: #2575c0;
}

/* ==========================================================================
   5. STAY CONNECTED NEWSLETTER SECTION (Clean White Modern Design)
   ========================================================================== */
.squares-loader-wrapper {
    display: none !important;
}

.square-block {
    display: none !important;
}

.newsletter-section {
    background-color: #ffffff;
    padding: 56px 0;
    margin: 0;
    border-top: 1px solid #f1f5f9;
}

.newsletter-card {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 38px 44px;
    box-shadow: 0 4px 20px rgba(10, 17, 56, 0.05);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0a1138 0%, #2563eb 50%, #00a88f 100%);
}

.newsletter-title {
    font-size: 24px;
    font-weight: 700;
    color: #0a1138;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.3;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.newsletter-inputs-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    min-width: 260px;
    max-width: 380px;
    height: 46px;
    padding: 0 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 14.5px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.newsletter-submit-btn {
    background: linear-gradient(135deg, #0a1138 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    height: 46px;
    padding: 0 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-submit-btn:hover {
    background: linear-gradient(135deg, #162a6e 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.38);
}

.newsletter-checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #475569;
    cursor: pointer;
}

.newsletter-checkbox-row input[type="checkbox"] {
    accent-color: #2563eb;
    width: 16px;
    height: 16px;
    border: 1px solid #94a3b8;
    border-radius: 3px;
}

/* ==========================================================================
   6. FOOTER SECTION (Exact Replica from Screenshot)
   ========================================================================== */
.site-footer {
    background-color: #0c1424;
    color: #ffffff;
    padding: 50px 0 0;
    margin: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    column-gap: 55px;
    row-gap: 32px;
    padding-bottom: 45px;
}

.footer-logo-wrapper {
    margin-bottom: 20px;
}

.footer-logo-link {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.footer-logo-link:hover {
    opacity: 0.92;
}

.footer-nivc-logo {
    max-width: 65px !important;
    width: 65px !important;
    height: auto !important;
    display: block;
}

.footer-broken-logo {
    display: none;
}

.footer-col-header {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 14px;
}

.footer-about-text {
    font-size: 13.5px;
    line-height: 1.62;
    color: #cbd5e1;
    margin-bottom: 0;
    text-align: left;
}

.footer-hq-text {
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.5;
}

.footer-contact-group {
    margin-top: 14px;
}

.footer-contact-label {
    font-size: 13.5px;
    font-weight: 400;
    color: #cbd5e1;
    margin-bottom: 3px;
}

.footer-contact-val {
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.5;
}

.footer-contact-val a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.footer-contact-val a:hover {
    color: #e5a93b !important;
}

.footer-social-wrapper {
    margin-top: 26px;
}

.footer-social-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-item a {
    font-size: 13.5px;
    color: #cbd5e1;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

/* Hover effect: Golden color (#e5a93b) */
.footer-link-item a:hover {
    color: #e5a93b !important;
}

/* Active / Click state: Golden color (#e5a93b) */
.footer-link-item a.active {
    color: #e5a93b !important;
    font-weight: 600;
}

/* ==========================================================================
   7. COPYRIGHT & WHATSAPP
   ========================================================================== */
.copyright-bar {
    background-color: #060b17;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
    padding: 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 0;
    width: 100%;
}

.copyright-bar p {
    margin: 0;
    padding: 0;
}

.copyright-bar a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.copyright-bar a:hover {
    color: #e5a93b !important;
}

.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.whatsapp-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .header-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .header-left, .header-right {
        align-items: center;
    }
    .header-phone-sub {
        padding-left: 0;
    }
    .clock-box-left, .clock-box-right {
        margin: 12px auto;
    }
    .header-center {
        padding-top: 10px;
    }
    .clock-time-right {
        margin-top: 4px;
    }
    .nav-menu-list {
        gap: 14px;
    }
}

@media (max-width: 900px) {
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }
    .footer-col-1-top { order: 1; }
    .footer-col-1-bottom { order: 2; }
    .footer-col-2-top { order: 3; }
    .footer-col-2-bottom { order: 4; }
    .footer-col-3-top { order: 5; }
    .footer-col-3-bottom { order: 6; }
}

@media (max-width: 768px) {
    .topbar-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    .topbar-nav {
        justify-content: center;
        gap: 12px;
    }
    .newsletter-inputs-row {
        flex-direction: column;
    }
    .newsletter-input {
        width: 100%;
    }
}
