/* ========== KHYBER PAKHTUNKHWA OFFICIAL THEME v2.0 ========== */
:root {
    --kp-green: #006747;          /* Official KP Green - Pantone 343 */
    --kp-light-green: #00a651;    /* Lighter Green - Pantone 355 */
    --kp-gold: #d4af37;           /* Gold - Pantone 874 */
    --kp-dark: #1a472a;           /* Dark Forest Green */
    --kp-light: #f8f9fa;          /* Light background */
    --kp-white: #ffffff;
    --kp-gray: #6c757d;
    --kp-blue: #0056b3;           /* Government Blue */
    --kp-shadow: 0 10px 40px rgba(0, 103, 71, 0.15);
    --kp-shadow-light: 0 5px 20px rgba(0, 103, 71, 0.08);
    --kp-gradient: linear-gradient(135deg, var(--kp-green), var(--kp-light-green));
    --kp-gradient-dark: linear-gradient(135deg, #00563a, var(--kp-green));
    --kp-gradient-gold: linear-gradient(135deg, #c19a2f, #e6c05c);
    --kp-gradient-light: linear-gradient(135deg, rgba(0, 103, 71, 0.1), rgba(0, 166, 81, 0.1));
    /* --kp-overlay: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%); */
}

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2d3748;
    overflow-x: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--kp-dark);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-title {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--kp-gradient);
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0, 103, 71, 0.2);
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title.left {
    text-align: left;
}

.section-title.left::after {
    left: 0;
    transform: none;
}

.section-subtitle {
    color: #4a5568;
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

/* ========== STICKY NAVIGATION ========== */
.top-header {
    background: var(--kp-gradient-dark);
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
    position: relative;
    z-index: 1002;
    border-bottom: 2px solid var(--kp-gold);
}

.top-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    pointer-events: none;
}

.top-header .container {
    position: relative;
}

.top-header i {
    margin-right: 8px;
    color: var(--kp-gold);
    font-size: 0.9em;
}

.top-header span {
    display: inline-flex;
    align-items: center;
}

/* ========== FIXED MAIN HEADER ========== */
.main-header {
    background: white;
    padding: 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1001;
    border-bottom: 3px solid var(--kp-green);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.main-header.sticky {
    padding: 5px 0;
    box-shadow: 0 10px 40px rgba(0, 103, 71, 0.15);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 3px solid var(--kp-gold);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.main-header.sticky .header-content {
    padding: 10px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.kp-logo {
    height: 65px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
}

.main-header.sticky .kp-logo {
    height: 50px;
}

.department-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--kp-green);
    font-size: 1.2rem;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
}

.department-name span:first-child {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--kp-dark);
}

.department-name span:last-child {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

.main-header.sticky .department-name span:first-child {
    font-size: 1.2rem;
}

.main-header.sticky .department-name span:last-child {
    font-size: 0.8rem;
}



/* ========== ENHANCED HERO CAROUSEL ========== */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 800px;
    overflow: hidden;
    margin-top: 0;
}

.hero-carousel {
    height: 100%;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.1);
    animation: zoomParallax 20s ease-in-out infinite;
}

@keyframes zoomParallax {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hero-carousel .carousel-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10%;
    right: 10%;
    text-align: left;
    background: var(--kp-overlay);
    padding: 60px;
    border-radius: 0px;
    /* backdrop-filter: blur(20px); */
    /* border: 1px solid rgba(212, 175, 55, 0.3); */
    /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); */
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) translateY(-50%);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateY(-50%);
    }
}

.hero-carousel h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #e6e6e6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-carousel p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.kp-btn-primary {
    background: var(--kp-gradient-gold);
    border: none;
    color: var(--kp-dark);
    padding: 16px 40px;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kp-btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
    color: var(--kp-dark);
}

.kp-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: 0.5s;
}

.kp-btn-primary:hover::before {
    left: 100%;
}

.kp-btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 16px 40px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kp-btn-outline:hover {
    background: white;
    color: var(--kp-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.carousel-indicators {
    bottom: 40px;
}

.carousel-indicators [data-bs-target] {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target]:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.carousel-indicators .active {
    background-color: var(--kp-gold);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* ========== BREADCRUMB ENHANCEMENT ========== */
.breadcrumb-section {
    background: linear-gradient(135deg, rgba(0, 86, 58, 0.05) 0%, rgba(0, 103, 71, 0.05) 100%);
    padding: 40px 0 20px;
    border-bottom: 1px solid rgba(0, 103, 71, 0.1);
    position: relative;
    overflow: hidden;
}

.breadcrumb-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--kp-gradient);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    font-size: 0.9rem;
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--kp-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--kp-light-green);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--kp-dark);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--kp-gray);
    content: "›";
    padding: 0 10px;
}

.page-title {
    color: var(--kp-dark);
    font-size: 2.8rem;
    font-weight: 800;
    margin-top: 15px;
    position: relative;
    padding-bottom: 20px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--kp-gradient);
    border-radius: 2px;
}

/* ========== ENHANCED OFFICER CARDS ========== */
.officer-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.officer-card {
    background: white;
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: var(--kp-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 103, 71, 0.1);
}

.officer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--kp-gradient);
}

.officer-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 103, 71, 0.05) 0%, transparent 50%);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.officer-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 103, 71, 0.15);
}

.officer-card:hover::after {
    transform: scale(1.5);
}

.officer-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.officer-avatar {
    position: relative;
    flex-shrink: 0;
}

.officer-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    filter: grayscale(0%);
}

.officer-card:hover .officer-img {
    transform: scale(1.1) rotate(5deg);
    filter: grayscale(0%);
    border-color: var(--kp-gold);
}

.officer-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    background: var(--kp-gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kp-dark);
    font-size: 0.9rem;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.officer-info h5 {
    color: var(--kp-green);
    font-weight: 800;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.officer-designation {
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.officer-date {
    color: var(--kp-gold);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.officer-message {
    position: relative;
    padding: 25px;
    background: linear-gradient(135deg, rgba(0, 103, 71, 0.05) 0%, rgba(0, 166, 81, 0.05) 100%);
    border-radius: 15px;
    border-left: 4px solid var(--kp-gold);
    margin: 25px 0;
}

.message-icon {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background: var(--kp-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 103, 71, 0.3);
    z-index: 1;
}

.officer-message p {
    color: #2d3748;
    line-height: 1.8;
    font-style: italic;
    margin: 0;
    font-size: 1rem;
}

.officer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 103, 71, 0.1);
}
/* ========== FOOTER STYLES ========== */
.footer {
    background: #000;
    color: #fff;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--kp-gradient-gold);
}

.footer .footer-links h5 {
    color: var(--kp-gold);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-links ul li {
    margin-bottom: 12px;
}

.footer .footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer .footer-links ul li a:hover {
    color: var(--kp-gold);
    padding-left: 5px;
}

.footer .footer-links ul li i {
    margin-right: 10px;
    color: var(--kp-gold);
    font-size: 0.9em;
}

.footer p {
    color: #aaa;
    line-height: 1.8;
}

.footer .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer .social-icons a:hover {
    background: var(--kp-gradient-gold);
    color: var(--kp-dark);
    transform: translateY(-3px);
    border-color: var(--kp-gold);
}

.footer .kp-btn-primary {
    background: var(--kp-gradient-gold);
    border: none;
    color: var(--kp-dark);
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer .kp-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.copyright {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.copyright p {
    margin-bottom: 5px;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--kp-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    display: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 103, 71, 0.3);
}

#backToTop:hover {
    background: var(--kp-gradient-dark);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 103, 71, 0.4);
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer {
        padding: 60px 0 30px;
    }
}

@media (max-width: 768px) {
    .footer .footer-links {
        margin-bottom: 30px;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 50px 0 25px;
    }
    
    #backToTop {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
}
/* ========== ENHANCED NEWS TICKER ========== */
.news-ticker-section {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 86, 58, 0.03) 0%, rgba(0, 103, 71, 0.03) 100%);
    border-radius: 25px;
    padding: 50px;
    margin: 50px auto;
    max-width: 1400px;
    box-shadow: var(--kp-shadow-light);
    border: 1px solid rgba(0, 103, 71, 0.1);
}

.news-ticker-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--kp-gradient);
    border-radius: 25px 25px 0 0;
}

.ticker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.ticker-title {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--kp-dark);
    font-weight: 800;
    font-size: 1.8rem;
    margin: 0;
}

.ticker-title i {
    color: var(--kp-gold);
    font-size: 2rem;
}

.ticker-label {
    background: var(--kp-gradient);
    color: white;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 103, 71, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.ticker-container {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 20px;
    background: white;
    box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.05);
}

.ticker-scroll {
    position: absolute;
    width: 100%;
    animation: scrollUp 45s linear infinite;
    padding: 20px;
}

.ticker-item {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 20px;
    box-shadow: var(--kp-shadow-light);
    border: 1px solid rgba(0, 103, 71, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.ticker-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--kp-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.ticker-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 103, 71, 0.15);
}

.ticker-item:hover::before {
    transform: scaleX(1);
}

.ticker-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.news-date {
    color: var(--kp-green);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-category {
    background: var(--kp-gradient-light);
    color: var(--kp-green);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticker-title-link {
    color: var(--kp-dark);
    font-weight: 800;
    font-size: 1.3rem;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
}

.ticker-title-link::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--kp-gold);
    transition: transform 0.3s ease;
}

.ticker-item:hover .ticker-title-link {
    color: var(--kp-green);
    padding-left: 25px;
}

.ticker-item:hover .ticker-title-link::before {
    transform: translateX(5px);
}

.ticker-excerpt {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.ticker-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 103, 71, 0.1);
}

.ticker-meta small {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.ticker-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.ticker-pause {
    background: transparent;
    border: 2px solid var(--kp-green);
    color: var(--kp-green);
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ticker-pause:hover {
    background: var(--kp-green);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 103, 71, 0.2);
}

/* ========== ENHANCED STATISTICS SECTION ========== */
.stats-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, var(--kp-green) 0%, #00563a 100%);
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="white" fill-opacity="0.03"/></svg>');
    background-size: cover;
}

.stats-section .section-title {
    color: white;
}

.stats-section .section-title::after {
    background: var(--kp-gold);
}

.stats-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--kp-gradient-gold);
}

.stat-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: all 0.6s ease;
}

.stat-box:hover {
    transform: translateY(-20px) scale(1.05);
    border-color: var(--kp-gold);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.stat-box:hover::after {
    transform: rotate(45deg) scale(1.5);
}

.stat-icon {
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.stat-icon i {
    font-size: 3.5rem;
    background: var(--kp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(0, 103, 71, 0.2));
}

.counter-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--kp-dark);
    margin: 15px 0;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.counter-number::after {
    content: '+';
    color: var(--kp-gold);
    font-size: 3rem;
    position: absolute;
    top: 0;
    right: -20px;
}

.stat-label {
    color: var(--kp-dark);
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-progress {
    margin-top: 25px;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background: rgba(0, 103, 71, 0.1);
    overflow: hidden;
}

.progress-bar {
    background: var(--kp-gradient);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .hero-carousel h1 {
        font-size: 3rem;
    }
    
    .hero-carousel p {
        font-size: 1.2rem;
    }
    
    .counter-number {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .main-header {
        position: relative;
    }
    
    .hero-section {
        height: 70vh;
        min-height: 600px;
    }
    
    .hero-carousel .carousel-caption {
        padding: 40px;
        left: 5%;
        right: 5%;
    }
    
    
    
    .news-ticker-section {
        padding: 30px;
        margin: 30px 15px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
        min-height: 500px;
    }
    
    .hero-carousel h1 {
        font-size: 2.2rem;
    }
    
    .hero-carousel p {
        font-size: 1rem;
    }
    
    .hero-carousel .carousel-caption {
        padding: 30px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .kp-btn-primary,
    .kp-btn-outline {
        width: 100%;
        justify-content: center;
    }
    
    .ticker-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .stat-box {
        padding: 40px 20px;
    }
    
    .counter-number {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-carousel h1 {
        font-size: 1.8rem;
    }
    
    .carousel-caption {
        padding: 20px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .department-name span:first-child {
        font-size: 1rem;
    }
    
    .news-ticker-section {
        padding: 20px;
    }
    
    .ticker-container {
        height: 350px;
    }
}

/* ========== UTILITY CLASSES ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--kp-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
    opacity: 0.3;
}

/* ========== SCROLL TO TOP BUTTON ========== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--kp-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 103, 71, 0.3);
    border: 2px solid white;
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 103, 71, 0.4);
    background: var(--kp-gradient-dark);
}

/* ========== LOADING ANIMATION ========== */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 103, 71, 0.1);
    border-radius: 50%;
    border-top-color: var(--kp-green);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== PARALLAX SECTIONS ========== */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--kp-overlay);
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--kp-gradient);
    border-radius: 10px;
    border: 3px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--kp-light-green);
}

/* ========== PRINT STYLES ========== */
@media print {
    .main-header,
    .top-header,
    .hero-section,
    .scroll-to-top,
    .footer {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }
    
    .section-title::after {
        background: #000 !important;
    }
}