html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    background: linear-gradient( 135deg, #d8f0f7 0%, #c8ece8 35%, #d4efd5 70%, #e4f2c8 100% );
    background-attachment: fixed;
    min-height: 100vh;
}

/* ================================
   HEADER
================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    width: 100%;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.10);
}


/* ================================
   GOVERNMENT TOP BAR
================================ */

.top-bar {
    background-color: #000;
    color: #fff;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}


/* Government information */

.government-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.government-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}


/* Contact Information */

.contact-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #f5f5f5;
    white-space: nowrap;
}

    .contact-item i {
        color: #fff;
        font-size: 0.9rem;
        width: 18px;
        text-align: center;
    }


/* ================================
   SOCIAL ICONS
================================ */

.social-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.social-link {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff !important;
    text-decoration: none !important;
    background-color: rgba(255, 255, 255, 0.10);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

    .social-link i {
        font-size: 0.9rem;
    }

    .social-link:hover {
        background-color: rgba(255, 255, 255, 0.25);
        color: #fff !important;
        transform: translateY(-2px);
    }


/* ================================
   MAIN NAVBAR
================================ */

.main-navbar {
    background: #fff;
    min-height: 72px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}


/* IRD Logo */

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 30px;
}

.ird-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
}


/* ================================
   NAVIGATION LINKS
================================ */

.main-navbar .nav-link {
    position: relative;
    color: #313131;
    font-weight: 600;
    font-size: 0.97rem;
    margin: 0 4px;
    padding: 12px 15px !important;
    border-radius: 7px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

    .main-navbar .nav-link:hover {
        color: #0d6efd;
        background-color: #f3f6fa;
    }

    .main-navbar .nav-link.active {
        color: #0d6efd;
        background-color: #eef5ff;
    }


    /* Active line */

    .main-navbar .nav-link::after {
        content: "";
        position: absolute;
        left: 15px;
        right: 15px;
        bottom: 5px;
        height: 2px;
        background-color: #0d6efd;
        transform: scaleX(0);
        transition: transform 0.2s ease;
    }

    .main-navbar .nav-link:hover::after,
    .main-navbar .nav-link.active::after {
        transform: scaleX(1);
    }


/* ================================
   MOBILE BUTTON
================================ */

.navbar-toggler {
    border: none;
    box-shadow: none !important;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #f5f5f5;
    color: #222;
}

    .navbar-toggler:hover {
        background: #e9ecef;
    }

    .navbar-toggler i {
        font-size: 1.3rem;
    }


/* ================================
   MOBILE
================================ */

@media (max-width: 991.98px) {

    .top-bar {
        padding: 8px 0;
    }

    .top-bar-content {
        gap: 10px;
    }

    .government-info {
        gap: 10px;
    }

    .government-logo {
        height: 32px;
    }

    .contact-info {
        gap: 12px;
    }

    .contact-item {
        font-size: 0.8rem;
    }

    .main-navbar {
        min-height: 65px;
    }

    .ird-logo {
        height: 43px;
    }

    .navbar-collapse {
        padding-top: 15px;
        padding-bottom: 10px;
    }

    .main-navbar .nav-link {
        margin: 3px 0;
        padding: 12px 15px !important;
    }

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


/* Smaller Phones */

@media (max-width: 767.98px) {

    .top-bar-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 0;
    }

    .government-info {
        width: 100%;
    }

    .contact-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .social-links {
        margin-left: 42px;
    }

    .contact-item {
        white-space: normal;
    }
}