:root {
    --primary: #2F6B3F;
    --primary-light: #4A8C5E;
    --primary-dark: #1E4628;
    --secondary: #7FB77E;
    --accent: #F7C85C;
    --accent-light: #F9D98C;
    --bg-light: #FFF6C0;
    --bg-white: #FFFFFF;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 15px 40px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', 'Montserrat', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Typography Helpers */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-white { color: var(--white); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-accent { background-color: var(--accent); }
.bg-light { background-color: var(--bg-light); }

/* Layout Containers */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 80px 0;
}

/* Premium Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

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

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

.btn-accent {
    background-color: var(--accent);
    color: var(--primary-dark);
}

.btn-accent:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Enterprise Header */
.top-bar {
    background: var(--primary-dark);
    color: white;
    padding: 12px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-link-item {
    font-weight: 500;
    opacity: 0.85;
    padding: 0 5px;
}

.top-link-item:hover {
    opacity: 1;
    color: var(--accent);
}

.header-main {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 3px solid var(--bg-light);
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    white-space: nowrap;
    height: 100%;
}

.nav-link {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

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

/* Cards & Sections */
.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s ease;
}

.card-glass:hover {
    transform: translateY(-5px);
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
}

/* News Ticker */
.news-ticker-container {
    background: var(--primary-dark);
    color: white;
    display: flex;
    overflow: hidden;
    height: 50px;
    border-bottom: 2px solid var(--accent);
    position: relative;
    z-index: 10;
}

.ticker-label {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 0 25px;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 0.85rem;
    white-space: nowrap;
    position: relative;
    z-index: 11;
    box-shadow: 10px 0 20px rgba(0,0,0,0.1);
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: tickerLoop 40s linear infinite;
    padding-left: 20px;
}

.ticker-item {
    padding-right: 80px;
    font-size: 0.9rem;
    font-weight: 500;
}

.ticker-date {
    color: var(--accent);
    font-weight: 700;
    margin-right: 5px;
}

@keyframes tickerLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.ticker:hover {
    animation-play-state: paused;
}

/* Mobile Drawer UI */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-content {
    padding: 30px 20px;
    flex: 1;
    overflow-y: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    padding: 12px 0;
    border-bottom: 1px solid #f9f9f9;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Responsiveness - Media Queries */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 991px) {
    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: block !important;
    }
    
    .top-bar .container {
        justify-content: center !important;
    }
    
    .top-services {
        display: none !important;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 0.7rem;
        padding: 8px 0;
    }
    
    .top-info {
        gap: 10px !important;
    }

    .top-info .divider {
        display: none;
    }

    .top-info span {
        white-space: normal;
        text-align: center;
    }

    .header-main {
        padding: 8px 0;
    }

    .logo img {
        width: 150px;
    }

    .section-padding {
        padding: 50px 0;
    }

    /* Grid Adjustments */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Homepage specifics */
    .hero-slider h1 {
        font-size: 2.2rem !important;
    }
    
    .hero-slider p {
        font-size: 1rem !important;
    }

    .hero-slider .container {
        text-align: center;
        align-items: center;
    }

    .hero-slider div[style*="display: flex"] {
        flex-direction: column;
        width: 100%;
        gap: 15px !important;
    }

    .hero-slider .btn {
        width: 100%;
    }

    .legislation-content {
        flex-direction: column !important;
        gap: 40px !important;
    }

    .stats-bar {
        flex-direction: column;
        gap: 30px;
    }

    footer .container > div {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 480px) {
    .top-info {
        flex-direction: column;
    }
    
    .hero-slider h1 {
        font-size: 1.8rem !important;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Dropdown Menu Styles */
.nav-item.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

/* Invisible bridge to keep hover state alive between link and dropdown */
.nav-item.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 18px;
    display: block;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 250px;
    background: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    list-style: none;
    border: 1px solid rgba(0,0,0,0.05);
}

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

.dropdown-item {
    display: block;
    padding: 12px 25px;
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary);
    border-left: 3px solid var(--accent);
    padding-left: 30px;
}

/* Page Header / Breadcrumbs */
.page-header {
    background: linear-gradient(rgba(30, 70, 40, 0.9), rgba(30, 70, 40, 0.9)), url('../images/kp_urban_landscape.jpg') center/cover;
    padding: 80px 0;
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.breadcrumbs a {
    color: white;
    font-weight: 700;
}

.breadcrumbs span {
    color: var(--accent);
}

/* Profile Layouts */
.profile-section {
    padding: 80px 0;
}

.profile-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    display: flex;
    gap: 50px;
    align-items: center;
    padding: 60px;
}

.profile-img-wrap {
    flex: 0 0 350px;
}

.profile-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 15px 15px 0 var(--accent);
}

.profile-content h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.profile-designation {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    display: block;
}

.message-text {
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Mobile Dropdown */
.mobile-sub-nav {
    padding-left: 15px;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-left: 1px dashed #ddd;
}

.mobile-sub-link {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 8px 0;
}

@media (max-width: 991px) {
    .profile-card {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }
    .profile-img-wrap {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
    }
}

/* Micro-animations & Institutional Transitions */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Premium Card Interactions */
.card-hover, .news-card, .tender-item, .auction-card, .office-card, .stat-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.card-hover:hover, .news-card:hover, .tender-item:hover, .auction-card:hover, .office-card:hover, .stat-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1) !important;
}

.btn {
    transition: all 0.3s ease !important;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Responsive Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.flex-responsive {
    display: flex;
    gap: 30px;
}

@media (max-width: 991px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .flex-responsive {
        flex-direction: column;
    }
}
