/* ================= GENERAL ================= */
:root {
    --primary-color: #41246E;
    --accent-color: #ea7200;
    --bg-color: #f9fafb;
    --text-color: #374151;
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #ffffff;
    color: var(--text-color);
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

main {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 0; /* remove padding */
}





/* ================= FIXED NAVBAR ON VIDEO Header================= */

#main-header {
    position: fixed;     /* stays on top */
    top: 20px;
    left: 140px;         /* small left space */
    right: 140px;        /* small right space */
    z-index: 2000;
    background: #fff;
    border-radius: 14px;
    /* softer shadow */
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

/* Container */
.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 8px 20px;   /* compact vertical padding */
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;

    border-radius: 12px;
}

/* Logo */
.logo-img {
    height: 30px;
}

/* Navigation */
.nav-links {
    flex: 1;
    text-align: center;
    margin-left: 100px;
}

.nav-links ul {
    display: inline-flex;
    gap: 36px;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 150px;
}

.nav-links a.nav-link {
    color: #111;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-links a.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width .3s ease;
    border-radius: 2px;
}

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

/* Active Tab Styles - DESKTOP */
.nav-links a.nav-link.active {
    color: var(--primary-color);
}

.nav-links a.nav-link.active::after {
    width: 100%;
    background: var(--primary-color);
}

/* Right group */
.right-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Button */
.btn-primary {
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff; /* WHITE TEXT COLOR */
    border-radius: 9px;
    font-size: 14px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 3px 12px rgba(65,36,110,.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(65,36,110,.4);
}

/* Hamburger */
.nav-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    padding: 0;
}

.hamburger {
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.hamburger:before,
.hamburger:after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    left: 0;
    transition: all 0.3s ease;
}

.hamburger:before {
    top: -6px;
}

.hamburger:after {
    top: 6px;
}




/* ===== Dropdown Container ===== */
.nav-item.dropdown {
  position: relative;
}

/* ===== Dropdown Box ===== */
.dropdown-box {
  position: absolute;
  top: 200%;
  left: 0;
  width: 250px;
  padding: 12px;
  background: rgba(255,255,255,0.98);
  border-radius: 10px;
  box-shadow:
    0 18px 45px rgba(0,0,0,0.12),
    0 4px 12px rgba(0,0,0,0.06);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.98);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  z-index: 999;
  border: 1px solid #ea7200;
}

/* Show on Hover */
.nav-item.dropdown:hover .dropdown-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* ===== Dropdown Item ===== */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: #1e1e1e;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: all 0.25s ease;
  cursor: pointer;
}

/* Icon Bubble */
.dropdown-item i {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #9f402d;
  box-shadow: 0 4px 10px rgba(159,64,45,0.25);
  transition: all 0.25s ease;
}

/* Hover Effect */
.dropdown-item:hover {
  background: linear-gradient(135deg, #9f402d, #c65a3a);
  color: #fff;

}

.dropdown-item:hover i {
  background: rgba(255,255,255,0.15);
  color: #fff;

}

.dropdown-arrow {
  margin-left: 6px;
  font-size: 12px;
  transition:
    transform 0.35s cubic-bezier(.4,0,.2,1),
    color 0.25s ease;
}

/* Rotate + glow on hover */
.nav-item.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg) translateY(1px);
  color: #9f402d;
}











/* Hamburger active state */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger:before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger:after {
    transform: rotate(-45deg);
    top: 0;
}

/* Hide mobile button on desktop */
.mobile-only-btn {
    display: none;
}

/* Hide desktop button on mobile */
@media (max-width: 768px) {
    .desktop-only-btn {
        display: none !important;
    }
}

/* ================= TABLET VIEWS ================= */

/* iPad Pro 12.9" (1024px) */
@media (max-width: 1024px) {
    #main-header {
        left: 40px;
        right: 40px;
        top: 15px;
    }

    .header-container {
        padding: 6px 15px;
        height: 65px;
    }

    .logo-img {
        height: 40px;
    }

    .nav-links ul {
        gap: 25px;
        margin-left: 100px;
    }

    .nav-links {
        margin-left: 60px;
    }

    .nav-links a.nav-link {
        font-size: 15px;
    }

    .btn-primary {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* iPad Pro 11", iPad Air, iPad 10th gen (834px - 820px) */
@media (max-width: 834px) {
    #main-header {
        left: 30px;
        right: 30px;
        top: 12px;
    }

    .header-container {
        padding: 5px 12px;
        height: 62px;
    }

    .logo-img {
        height: 38px;
    }

    .nav-links ul {
        gap: 20px;
        margin-left: 80px;
    }

    .nav-links {
        margin-left: 40px;
    }

    .nav-links a.nav-link {
        font-size: 14px;
    }

    .btn-primary {
        padding: 7px 14px;
        font-size: 12px;
    }
}

/* Show hamburger menu for tablets */
@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 40px;
        right: 40px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.12);
        display: none;
        z-index: 1000;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
        opacity: 0;
        transform: translateY(-10px);
        border: 1px solid rgba(0,0,0,0.05);
        margin: 0;
    }

    .nav-links.active {
        display: block;
        max-height: 380px;
        overflow-y: auto;
        padding: 20px 0;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links ul {
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links li {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-links a.nav-link {
        font-size: 15px;
        padding: 12px 20px;
        width: 100%;
    }

    .nav-links a.nav-link.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 60%;
        background: var(--primary-color);
        border-radius: 0 3px 3px 0;
    }

    .nav-links li:not(:last-child):not(.mobile-only-btn) {
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    .mobile-only-btn {
        display: flex;
        justify-content: center;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(0,0,0,0.08);
        list-style: none;
    }

    .btn-mobile {
        padding: 12px 30px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
        min-width: 180px;
    }

    .desktop-only-btn {
        display: none !important;
    }

    /* Remove underline effect on mobile/tablet */
    .nav-links a.nav-link::after {
        display: none;
    }
}

/* ================= MOBILE VIEW ONLY ================= */

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    /* Header adjustments for mobile */
    #main-header {
        left: 15px;
        right: 15px;
        top: 10px;
        border-radius: 10px;
    }

    /* Container adjustments */
    .header-container {
        padding: 5px 15px;
        height: 60px;
        border-radius: 8px;
    }

    /* Logo size reduction */
    .logo-img {
        height: 36px;
    }

    /* Show hamburger menu */
    .nav-toggle {
        display: block;
    }

    /* Mobile dropdown menu - PROFESSIONAL DESIGN */
    .nav-links {
        position: absolute;
        top: calc(100% + 10px); /* Add slight gap below header */
        left: 0;
        right: 0;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.12);
        margin: 0;
        display: none;
        z-index: 1000;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
        opacity: 0;
        transform: translateY(-10px);
        border: 1px solid rgba(0,0,0,0.05);
    }

    .nav-links.active {
        display: block;
        max-height: 380px; /* Professional height */
        overflow-y: auto;
        padding: 25px 0;
        opacity: 1;
        transform: translateY(0);
    }

    /* Smooth scrollbar styling */
    .nav-links::-webkit-scrollbar {
        width: 4px;
    }

    .nav-links::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.03);
        border-radius: 10px;
    }

    .nav-links::-webkit-scrollbar-thumb {
        background: rgba(65,36,110,0.2);
        border-radius: 10px;
    }

    .nav-links::-webkit-scrollbar-thumb:hover {
        background: rgba(65,36,110,0.3);
    }

    /* Container for mobile menu content */
    .mobile-menu-content {
        padding: 0;
    }

    /* Navigation list vertical - CENTERED & PROFESSIONAL */
    .nav-links ul {
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
        width: 100%;
        text-align: center; /* Center align all items */
        margin-left: 0 !important; /* Override desktop margin */
    }

    /* Navigation links - PROFESSIONAL STYLING */
    .nav-links li {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-links a.nav-link {
        font-size: 16px;
        font-weight: 500;
        display: inline-block;
        padding: 14px 20px;
        color: #333;
        text-align: center;
        width: 100%;
        transition: all 0.2s ease;
        position: relative;
    }

    /* Remove underline effect on mobile */
    .nav-links a.nav-link::after {
        display: none;
    }

    /* Active Tab Styles - MOBILE */
    .nav-links a.nav-link.active {
        color: var(--primary-color);
        font-weight: 600;
        background: rgba(65,36,110,0.08);
        position: relative;
    }

    /* Add left border indicator for active tab on mobile */
    .nav-links a.nav-link.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 60%;
        background: var(--primary-color);
        border-radius: 0 3px 3px 0;
    }

    /* Soft hover effect */
    .nav-links a.nav-link:hover {
        color: var(--primary-color);
        background: rgba(65,36,110,0.04);
    }

    /* Professional separator */
    .nav-links li:not(:last-child):not(.mobile-only-btn) {
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    /* Mobile button - PROFESSIONAL CENTERED DESIGN */
    .mobile-only-btn {
        display: flex;
        justify-content: center;
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid rgba(0,0,0,0.08);
        list-style: none;
    }

    .btn-mobile {
        padding: 14px 32px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        display: inline-block !important;
        text-align: center !important;
        background: var(--primary-color) !important;
        color: #fff !important;
        text-decoration: none !important;
        box-shadow: 0 6px 20px rgba(65,36,110,0.2) !important;
        transition: all 0.3s ease !important;
        min-width: 200px;
    }

    .btn-mobile:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(65,36,110,0.3) !important;
        background: var(--primary-color) !important;
        color: #fff !important;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    #main-header {
        left: 10px;
        right: 10px;
        top: 8px;
        border-radius: 8px;
    }

    .header-container {
        padding: 4px 12px;
        height: 56px;
    }

    .logo-img {
        height: 32px;
    }

    .nav-links {
        border-radius: 10px;
        top: calc(100% + 8px);
    }

    .nav-links.active {
        max-height: 350px;
    }

    .nav-links a.nav-link {
        font-size: 15px;
        padding: 12px 15px;
    }

    .nav-links a.nav-link.active::before {
        width: 3px;
    }

    .btn-mobile {
        padding: 12px 28px !important;
        font-size: 15px !important;
        min-width: 180px;
    }

    .mobile-only-btn {
        margin-top: 15px;
        padding-top: 12px;
    }
}

/* ================= RESPONSIVE (Your existing) ================= */
@media (max-width: 992px) {
    .nav-links ul {
        gap: 24px;
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .header-container { flex-wrap: wrap; }
    .nav-toggle { display: block; }
    .nav-links { width: 100%; display: none; margin-top: 8px; text-align: left; }
    .nav-links.active { display: block; }
    .nav-links ul { flex-direction: column; gap: 12px; }
    .right-group { margin-left: auto; }
}










/* ================= FOOTER ================= */
.footer {
    background: #f8f8eb;
    color: #374151;
    padding: 50px 0 30px;
    border-top: 2px solid #e5e7eb;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 60px;
    row-gap: 30px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    color: #00186b;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-subtitle {
    margin-top: 26px;
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-address-label {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    display: inline-block;
    margin-top: 6px;
    margin-bottom: 12px;
}

.footer-text {
    line-height: 1.6;
    color: #374151;
    font-size: 20px;
    margin: 0 0 10px 0;
}

.footer a {
    display: block;
    margin: 9px 0;
    color: #374151;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.footer .footer-text a {
    color: #1d4ed8;
    font-weight: 600;
    display: inline;
    margin: 0;
}

.footer .footer-text a:hover {
    color: #00186b;
    text-decoration: underline;
}

.social-icons {
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: #963522;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 18px;
    color: #00186b;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

/* ================= FOOTER RESPONSIVE ================= */

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 40px;
        row-gap: 30px;
        padding: 0 40px;
    }

    .footer-title {
        font-size: 21px;
    }

    .footer-text,
    .footer a {
        font-size: 19px;
    }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 25px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 30px;
        row-gap: 25px;
        padding: 0 30px;
    }

    .footer-title {
        font-size: 20px;
    }

    .footer-text,
    .footer a {
        font-size: 18px;
    }

    .social-icons a {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    .footer-bottom {
        font-size: 17px;
        margin-top: 35px;
        padding-top: 15px;
    }
}

/* Large Mobile (640px and below) */
@media (max-width: 640px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        row-gap: 30px;
        padding: 0 25px;
    }

    .footer {
        text-align: center;
        padding: 35px 0 20px;
    }

    .footer-column {
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .footer-subtitle {
        margin-top: 15px;
        margin-bottom: 8px;
    }

    .footer-address-label {
        font-size: 19px;
    }

    .footer-text,
    .footer a {
        font-size: 17px;
    }

    .footer a {
        margin: 8px 0;
    }

    .footer-bottom {
        font-size: 16px;
        margin-top: 30px;
        padding-top: 15px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .footer {
        padding: 30px 0 20px;
    }

    .footer-container {
        padding: 0 20px;
        row-gap: 25px;
    }

    .footer-title {
        font-size: 19px;
    }

    .footer-address-label {
        font-size: 18px;
    }

    .footer-text,
    .footer a {
        font-size: 16px;
    }

    .social-icons {
        margin-top: 12px;
    }

    .social-icons a {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .footer-bottom {
        font-size: 15px;
        margin-top: 25px;
        padding-top: 15px;
    }
}

/* Very Small Mobile (360px and below) */
@media (max-width: 360px) {
    .footer {
        padding: 25px 0 15px;
    }

    .footer-container {
        padding: 0 15px;
        row-gap: 20px;
    }

    .footer-title {
        font-size: 18px;
    }

    .footer-text,
    .footer a {
        font-size: 15px;
    }

    .social-icons a {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .footer-bottom {
        font-size: 14px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .footer a {
        padding: 8px 0;
        min-height: 44px; /* Better touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .social-icons a {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .footer {
        background: #1f2937;
        color: #e5e7eb;
        border-top-color: #374151;
    }

    .footer .footer-text a {
        color: #60a5fa;
    }

    .footer .footer-text a:hover {
        color: #93c5fd;
    }

    .footer-bottom {
        color: #e5e7eb;
        border-top-color: #374151;
    }
}

/* Print Styles */
@media print {
    .footer {
        border-top: 1px solid #ccc;
        padding: 30px 0 20px;
    }

    .social-icons {
        display: none;
    }

    .footer a {
        color: #000;
        text-decoration: underline;
    }
}
