@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Premium Construction */
    --primary: #0066cc;
    --primary-light: #44a1ff;
    --primary-dark: #004a99;
    --secondary: #1f3a55;
    --secondary-light: #2c527a;
    --accent: #ff9d00;

    --bg-main: #f8fafd;
    --bg-white: #ffffff;
    --bg-dark: #0a1118;

    --text-main: #2c3e50;
    --text-muted: #5d6d7e;
    --text-light: #ffffff;

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);

    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--secondary);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header Modern - Global */
.page-header-modern {
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    /* Reduced to remove excess space */
    margin-bottom: 0;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--bg-dark), rgba(10, 17, 24, 0.4));
    z-index: 2;
}

.header-content {
    position: relative;
    z-index: 10;
    color: white;
    text-align: center;
}

.header-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: white;
    margin-bottom: 15px;
}

.header-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
}

/* Recent Posts Footer Listing */
.recent-posts {
    list-style: none !important;
    padding: 0 !important;
}

.recent-posts li {
    margin-bottom: 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px !important;
}

.recent-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0 !important;
}

.recent-posts li a {
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.recent-posts li a span {
    display: block;
    font-size: 0.75rem;
    color: var(--primary-light);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}

.recent-posts li a h6 {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    transition: var(--transition);
}

.recent-posts li a:hover h6 {
    color: var(--primary-light) !important;
}

/* Sections */
section {
    padding: 80px 0;
    /* Reduced from 120px to remove excess space */
}

/* Glassmorphism Refined */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Buttons */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary-modern {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.4);
    background: var(--primary-dark);
}

.btn-white-modern {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-white-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-head .tag {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: inline-block;
    /* Changed from block to be more compact */
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Grid System */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 991px) {
    .section-head h2 {
        font-size: 2.5rem;
    }

    section {
        padding: 80px 0;
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 17, 24, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-btn:hover {
    background: var(--primary);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

@media (max-width: 768px) {
    .lightbox-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }
}