/* Custom Styles to augment Tailwind */
:root {
  --primary: #071A36;
  --gold: #D9A928;
}

html {
    scroll-behavior: smooth;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: var(--gold); 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b88d1d; 
}

/* Hover Zoom for Images */
.hover-zoom {
    overflow: hidden;
}
.hover-zoom img {
    transition: transform 0.5s ease;
}
.hover-zoom:hover img {
    transform: scale(1.05);
}

/* Line Animation */
.hover-line-anim {
    position: relative;
    display: inline-block;
}
.hover-line-anim::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}
.hover-line-anim:hover::after {
    width: 100%;
}

/* =========================================================
   PIUZ INTERNATIONAL - PREMIUM HEADER
   ========================================================= */

header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid rgba(217, 169, 40, 0.25);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.20);
}

/* Header container */
header > .container {
    max-width: 1400px;
}

/* Main header row */
header .container > div:first-child {
    min-height: 82px;
    padding-top: 12px;
    padding-bottom: 12px;
}

/* =========================================================
   LOGO
   ========================================================= */

header a[href="index.html"]:first-child {
    flex-shrink: 0;
}

header a[href="index.html"] img {
    height: 58px;
    width: auto;
    max-width: 145px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 5px;
    padding: 4px 7px;
    display: block;
}

/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-left: auto;
    margin-right: 28px;
}

/* Remove Tailwind space-x effect */
header nav > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Navigation links */
header .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;

    white-space: nowrap;
    padding: 8px 0;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

/* Gold underline */
header .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 1px;

    width: 0;
    height: 2px;

    background: var(--gold);

    transition: width 0.3s ease;
}

header .nav-link:hover {
    color: var(--gold) !important;
}

header .nav-link:hover::after {
    width: 100%;
}

/* Active/current page */
header .nav-link.active {
    color: var(--gold) !important;
}

header .nav-link.active::after {
    width: 100%;
}

/* Dropdown arrow */
header .nav-link i {
    color: var(--gold);
    font-size: 10px;
    transition: transform 0.3s ease;
}

header .dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

/* =========================================================
   DROPDOWN
   ========================================================= */

header .dropdown > div {
    width: 235px;
    margin-top: 10px;

    background: #ffffff;
    border: 1px solid rgba(217, 169, 40, 0.35);
    border-radius: 6px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.20);

    overflow: hidden;
}

header .dropdown > div a {
    display: block;

    color: #1D2735;

    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;

    padding: 13px 18px;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        padding-left 0.25s ease;
}

header .dropdown > div a:hover {
    background: #F4F7FA;
    color: var(--gold);
    padding-left: 23px;
}

/* =========================================================
   FREE COUNSELLING BUTTON
   ========================================================= */

header .hidden.lg\:block {
    flex-shrink: 0;
}

header .btn-primary {
    min-width: 185px;
    height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 24px;

    background: var(--gold) !important;
    color: var(--primary) !important;

    border: 1px solid var(--gold);

    border-radius: 4px;

    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;

    box-shadow: 0 5px 18px rgba(217, 169, 40, 0.30);

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

header .btn-primary:hover {
    background: #F2C14E !important;
    color: var(--primary) !important;

    transform: translateY(-2px);

    box-shadow: 0 8px 24px rgba(217, 169, 40, 0.45);
}

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

#mobile-menu-btn {
    color: #ffffff;
    font-size: 24px;
    border: 1px solid rgba(217, 169, 40, 0.35);
    border-radius: 5px;
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.3s ease;
}

#mobile-menu-btn:hover {
    background: var(--gold);
    color: var(--primary);
}

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

#mobile-menu {
    background: var(--secondary);
    border-top: 1px solid rgba(217, 169, 40, 0.25);
}

#mobile-menu a {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        padding-left 0.25s ease;
}

#mobile-menu a:hover {
    background: var(--primary);
    color: var(--gold);
    padding-left: 20px;
}

/* =========================================================
   TABLET / SMALL DESKTOP
   ========================================================= */

@media (max-width: 1280px) {

    header nav {
        gap: 20px;
        margin-right: 18px;
    }

    header .nav-link {
        font-size: 13px;
    }

    header .btn-primary {
        min-width: 165px;
        padding: 0 18px;
        font-size: 13px;
    }

    header a[href="index.html"] img {
        max-width: 130px;
        height: 54px;
    }
}

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

@media (max-width: 1023px) {

    header .container > div:first-child {
        min-height: 72px;
    }

    header a[href="index.html"] img {
        height: 52px;
        max-width: 130px;
    }

    header nav,
    header .hidden.lg\:block {
        display: none !important;
    }

    #mobile-menu-btn {
        display: flex !important;
    }
}

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

@media (max-width: 480px) {

    header .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    header a[href="index.html"] img {
        height: 48px;
        max-width: 120px;
    }

    #mobile-menu-btn {
        width: 42px;
        height: 42px;
        font-size: 21px;
    }
}

/* =========================================
   PIUZ HEADER - WHITE BACKGROUND / NAVY TEXT
   ========================================= */

header {
    background: #ffffff !important;
    color: #071A36 !important;
    border-bottom: 1px solid rgba(217, 169, 40, 0.25);
    box-shadow: 0 4px 15px rgba(7, 26, 54, 0.12);
}

/* Header text and navigation */
header nav a,
header .nav-link {
    color: #071A36 !important;
}

/* Navigation hover */
header nav a:hover,
header .nav-link:hover {
    color: #D9A928 !important;
}

/* Dropdown arrow */
header .nav-link i {
    color: #071A36 !important;
}

/* Dropdown arrow hover */
header .dropdown:hover .nav-link i {
    color: #D9A928 !important;
}

/* Gold underline */
header .nav-link::after {
    background-color: #D9A928 !important;
}

/* Dropdown menu */
header .dropdown > div {
    background: #ffffff !important;
    border: 1px solid rgba(217, 169, 40, 0.25);
}

header .dropdown > div a {
    color: #071A36 !important;
}

header .dropdown > div a:hover {
    background: #F4F7FA !important;
    color: #D9A928 !important;
}

/* Mobile menu button */
#mobile-menu-btn {
    color: #071A36 !important;
    border-color: rgba(7, 26, 54, 0.25);
}

#mobile-menu-btn:hover {
    background: #D9A928 !important;
    color: #071A36 !important;
}

/* Mobile menu */
#mobile-menu {
    background: #ffffff !important;
    border-top: 1px solid rgba(217, 169, 40, 0.25);
}

#mobile-menu a {
    color: #071A36 !important;
}

#mobile-menu a:hover {
    background: #F4F7FA !important;
    color: #D9A928 !important;
}

/* Keep Free Counselling button gold */
header .btn-primary {
    background: #D9A928 !important;
    color: #071A36 !important;
}

header .btn-primary:hover {
    background: #F2C14E !important;
    color: #071A36 !important;
}