:root {
    --primary: #f05922;
    --primary-dark: #d1481c;
    --primary-light: #ff7c4d;
    --secondary: #2a4365;
    --secondary-light: #4a6fa8;
    --dark: #333333;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 4px;
    background-color: var(--primary);
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.3rem;
    color: var(--secondary);
}

p {
    margin-bottom: 1rem;
}

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

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

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--secondary);
}

.logo-icon {
    color: var(--primary);
    margin-right: 10px;
    font-size: 2rem;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    position: relative;
    margin-left: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

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

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-light);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
    z-index: 1001;
}

/* Page Header */
.page-header {
    background-color: var(--secondary);
    color: var(--white);
    padding: 150px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb li {
    margin: 0 5px;
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

.breadcrumb li:not(:last-child):after {
    content: '/';
    margin-left: 10px;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: var(--white);
    padding-top: 70px;
    border-top: 5px solid var(--primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-logo .logo-icon {
    margin-right: 10px;
}

.footer-about p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
    padding-left: 5px;
}

.footer-links a i {
    margin-right: 8px;
    font-size: 0.8rem;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-links-bottom {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-links-bottom a:hover {
    color: var(--primary);
}

/* Mobile Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Styles (768px and below) */
@media (max-width: 768px) {
    /* Fixed Header with perfect spacing */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        padding: 0;
        background-color: var(--white);
        box-shadow: var(--shadow);
        z-index: 1000;
    }
    
    /* Header Container - Perfect flexbox alignment */
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        padding: 0 20px;
        max-width: 100%;
    }
    
    /* Logo - Perfectly left-aligned */
    .logo {
        display: flex;
        align-items: center;
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--secondary);
        flex-shrink: 0;
        margin: 0;
        padding: 0;
    }
    
    .logo-icon {
        color: var(--primary);
        margin-right: 10px;
        font-size: 1.8rem;
        flex-shrink: 0;
    }
    
    /* Mobile Menu Button - Perfectly right-aligned */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--secondary);
        cursor: pointer;
        z-index: 1001;
        padding: 0;
        margin: 0;
        border-radius: 4px;
        transition: var(--transition);
        flex-shrink: 0;
        margin-left: auto; /* Push to the right */
    }
    
    .mobile-menu-btn:hover {
        background-color: rgba(240, 89, 34, 0.1);
    }
    
    .mobile-menu-btn:active {
        background-color: rgba(240, 89, 34, 0.2);
        transform: scale(0.95);
    }
    
    /* Hide desktop navigation on mobile */
    nav {
        display: none;
    }
    
    /* Mobile Navigation Menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 90px 25px 40px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 0;
        width: 100%;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--dark);
        transition: var(--transition);
        border: none;
        min-height: 56px;
    }
    
    .nav-links a:after {
        display: none;
    }
    
    .nav-links a i.fa-chevron-down {
        font-size: 0.9rem;
        color: var(--gray);
        transition: transform 0.3s ease;
        margin-left: 10px;
    }
    
    .dropdown.active > a i.fa-chevron-down {
        transform: rotate(180deg);
        color: var(--primary);
    }
    
    /* Mobile Dropdown Content */
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(240, 89, 34, 0.05);
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        border-radius: 0;
        padding-left: 20px;
    }
    
    .dropdown.active .dropdown-content {
        max-height: 400px;
        padding-top: 10px;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    
    .dropdown-content a {
        padding: 14px 0;
        border-bottom: none;
        font-size: 1rem;
        font-weight: 500;
        color: var(--gray);
        border-left: 3px solid transparent;
        padding-left: 15px;
    }
    
    .dropdown-content a:hover,
    .dropdown-content a.active {
        color: var(--primary);
        border-left-color: var(--primary);
        background-color: transparent;
    }
    
    /* Mobile Menu Header */
    .mobile-menu-header {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 70px;
        background-color: var(--white);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 25px;
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active ~ .mobile-menu-header {
        right: 0;
    }
    
    .mobile-menu-header .logo {
        font-size: 1.5rem;
    }
    
    .mobile-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--secondary);
        cursor: pointer;
        border-radius: 4px;
        transition: var(--transition);
        flex-shrink: 0;
    }
    
    .mobile-close-btn:hover {
        background-color: rgba(240, 89, 34, 0.1);
    }
    
    .mobile-close-btn:active {
        background-color: rgba(240, 89, 34, 0.2);
        transform: scale(0.95);
    }
    
    /* Page Header adjustment for fixed header */
    .page-header {
        padding: 150px 0 80px;
        margin-top: 70px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Tablet Styles (769px to 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .nav-links {
        display: flex;
    }
    
    .mobile-menu-header {
        display: none;
    }
    
    nav {
        display: flex;
    }
}

/* Small Phones (576px and below) */
@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo-icon {
        font-size: 1.7rem;
        margin-right: 8px;
    }
    
    .mobile-menu-btn {
        width: 42px;
        height: 42px;
        font-size: 1.4rem;
    }
    
    .nav-links {
        width: 100%;
        max-width: 100%;
        padding: 90px 20px 40px;
    }
    
    .mobile-menu-header {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .mobile-close-btn {
        width: 42px;
        height: 42px;
        font-size: 1.4rem;
    }
    
    .page-header {
        padding: 140px 0 70px;
        margin-top: 70px;
    }
}

/* Very Small Phones (375px and below) */
@media (max-width: 375px) {
    .header-container {
        padding: 0 12px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .logo-icon {
        font-size: 1.6rem;
        margin-right: 6px;
    }
    
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .nav-links {
        padding: 90px 16px 40px;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 16px 0;
    }
    
    .mobile-menu-header {
        padding: 0 16px;
    }
    
    .mobile-close-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}

/* Touch-friendly improvements for mobile menu */
@media (max-width: 768px) {
    /* Larger touch targets */
    .nav-links a {
        min-height: 56px;
        display: flex;
        align-items: center;
    }
    
    .dropdown-content a {
        min-height: 48px;
    }
    
    /* Better feedback on touch */
    .nav-links a:active {
        background-color: rgba(240, 89, 34, 0.08);
    }
    
    /* Prevent text selection on menu items */
    .nav-links a {
        user-select: none;
        -webkit-tap-highlight-color: rgba(240, 89, 34, 0.1);
    }
    
    /* Mobile menu scrollbar styling */
    .nav-links::-webkit-scrollbar {
        width: 4px;
    }
    
    .nav-links::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
    }
    
    .nav-links::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 2px;
    }
    
    /* Active page indicator for mobile */
    .nav-links a.active {
        color: var(--primary);
        font-weight: 700;
        position: relative;
    }
    
    .nav-links a.active:before {
        content: '';
        position: absolute;
        left: -25px;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 20px;
        background-color: var(--primary);
        border-radius: 0 2px 2px 0;
    }
    
    /* Ensure body has proper top padding for fixed header */
    body {
        padding-top: 0;
    }
    
    /* Main content should start below fixed header */
    main {
        margin-top: 70px;
    }
}