

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary-color: #06B6D4;
    --accent-color: #F59E0B;
    --success-color: #10B981;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-blue: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
}

/* === 1. General Styles === */
body {
    font-family: 'Inter', 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* === 2. Modern Header === */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header .navbar {
    min-height: 110px;
    padding: 5px 0;
}

header .navbar-brand {
    margin-top: 0;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

header .navbar-brand:hover {
    transform: scale(1.05);
}

header .navbar-brand img {
    max-height: 100px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Modern Navigation */
header .navbar-nav > li {
    padding: 35px 0;
    margin: 0 5px;
}

header .navbar-nav > li > a {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 18px;
    border-radius: 8px;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header .navbar-nav > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-blue);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

header .navbar-nav > li > a:hover {
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

header .navbar-nav > li > a:hover::before {
    width: 80%;
}

header .navbar-nav > li.active > a {
    color: var(--bg-white);
    background: var(--gradient-blue);
    box-shadow: var(--shadow-md);
}

header .navbar-nav > li.active > a::before {
    display: none;
}

/* Mobile Menu Button */
.navbar-toggle {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 10px;
}

.navbar-toggle .icon-bar {
    background-color: var(--primary-color);
    height: 3px;
    border-radius: 2px;
}

/* === 3. Hero Slider Section === */
#featured {
    background: var(--bg-white);
    padding: 0;
    margin: 0;
}

#featured .flexslider {
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: hidden;
}

#featured .flexslider img {
    border-radius: 0;
}

.flex-caption {
    background: rgba(31, 41, 55, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 35px 40px;
    bottom: 50px;
    right: 50px;
    width: 400px;
    box-shadow: var(--shadow-xl);
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flex-caption h3 {
    color: var(--bg-white);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.flex-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.flex-caption a {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-blue);
    color: var(--bg-white);
    font-weight: 600;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.flex-caption a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* === 4. Call to Action === */
.callaction {
    background: var(--gradient-blue);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.callaction::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.cta-text {
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    color: var(--bg-white);
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === 5. Content Boxes === */
#content {
    background: var(--bg-light);
    padding: 80px 0;
}

.box {
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.box:hover {
    transform: translateY(-10px);
}

.box-gray {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.box-gray:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.box-gray h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.box-gray .icon {
    margin-bottom: 25px;
    position: relative;
}

.box-gray .icon i {
    font-size: 3.5rem;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.box:hover .box-gray .icon i {
    transform: scale(1.1) rotate(5deg);
}

.box-gray p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.box-bottom {
    background: var(--gradient-blue);
    padding: 18px 0;
    text-align: center;
    border-radius: 0 0 16px 16px;
    transition: all 0.3s ease;
}

.box:hover .box-bottom {
    background: var(--gradient-primary);
}

.box-bottom a {
    color: var(--bg-white);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.box-bottom a:hover {
    color: var(--bg-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* === 6. Inner Pages === */
#inner-headline {
    background: var(--gradient-blue);
    padding: 1px 0;
    position: relative;
    overflow: hidden;
}

#inner-headline::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

#inner-headline .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 15px 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-sm);
}

#inner-headline .breadcrumb li {
    color: var(--bg-white);
    font-weight: 500;
}

#inner-headline .breadcrumb li a {
    color: var(--bg-white);
    transition: all 0.3s ease;
}

#inner-headline .breadcrumb li a:hover {
    color: rgba(255, 255, 255, 0.8);
}

#inner-headline .breadcrumb li i {
    color: rgba(255, 255, 255, 0.8);
}

/* === 7. Article & Post Styles === */
article {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

article:hover {
    box-shadow: var(--shadow-xl);
}

article .post-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

article:hover .post-image img {
    transform: scale(1.05);
}

article .post-heading {
    padding: 30px;
    background: var(--bg-white);
}

article .post-heading h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

article .post-heading h3 a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

article .post-heading h3 a:hover {
    color: var(--primary-color);
}

article h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-left: 30px;
}

article p, article li {
    color: var(--text-light);
    line-height: 1.8;
    padding: 0 30px;
    margin-bottom: 15px;
}

article ul {
    padding-left: 50px;
    list-style-type: disc;
    list-style-position: outside;
}

article li {
    margin-bottom: 10px;
    padding-left: 10px;
    display: list-item;
}

/* === 8. Sidebar === */
aside .widget {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

aside .widget:hover {
    box-shadow: var(--shadow-lg);
}

aside .widgetheading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

aside .widgetheading::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-blue);
}

aside ul.cat {
    list-style: none;
    padding: 0;
    margin: 0;
}

aside ul.cat li {
    margin-bottom: 12px;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

aside ul.cat li:hover {
    background: var(--primary-color);
    transform: translateX(5px);
}

aside ul.cat li a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

aside ul.cat li:hover a {
    color: var(--bg-white);
}

aside ul.cat li i {
    color: var(--primary-color);
    margin-right: 10px;
    transition: color 0.3s ease;
}

aside ul.cat li:hover i {
    color: var(--bg-white);
}

/* === 9. Footer === */
footer {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue);
}

footer .widget {
    margin-bottom: 40px;
}

footer .widgetheading {
    color: var(--bg-white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

footer .widgetheading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-blue);
}

footer p, footer address {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--bg-white);
    text-decoration: none;
}

footer ul.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul.link-list li {
    margin-bottom: 12px;
    padding-left: 0;
}

footer ul.link-list li a {
    display: inline-block;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

footer ul.link-list li a::before {
    content: '→';
    margin-right: 10px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

footer ul.link-list li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

footer ul.link-list li a:hover {
    padding-left: 10px;
    color: var(--primary-light);
}

/* Sub Footer */
#sub-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#sub-footer .copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

#sub-footer ul.social-network {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

#sub-footer ul.social-network li {
    display: inline-block;
    margin-left: 10px;
}

#sub-footer ul.social-network li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--bg-white);
    transition: all 0.3s ease;
}

#sub-footer ul.social-network li a:hover {
    background: var(--gradient-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* === 10. Scroll to Top Button === */
.scrollup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 999;
}

.scrollup:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.scrollup i {
    color: var(--bg-white);
    font-size: 1.5rem;
}

/* === 11. Dividers === */
.solidline {
    border-top: 2px solid var(--border-color);
    margin: 40px 0;
    position: relative;
}

.solidline::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--gradient-blue);
}

/* === 12. Responsive Design === */
@media (max-width: 991px) {
    header .navbar-nav > li {
        padding: 5px 0;
    }
    
    header .navbar-nav > li > a {
        padding: 8px 15px;
    }
    
    /* Ensure the full mobile menu is scrollable and never clipped */
    .navbar-collapse {
        max-height: calc(100vh - 80px) !important;
        overflow-y: auto !important;
    }
    
    .flex-caption {
        width: 90%;
        right: 5%;
        bottom: 30px;
        padding: 25px;
    }
    
    .cta-text h2 {
        font-size: 2rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
}

@media (max-width: 767px) {
    .flex-caption {
        position: relative;
        width: 100%;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }
    
    .box-gray {
        height: auto;
        min-height: 280px;
    }
    
    #sub-footer ul.social-network {
        text-align: center;
        margin-top: 20px;
    }
    
    #sub-footer .copyright {
        text-align: center;
    }
}

/* === 13. Animations === */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* === 14. Utility Classes === */
.gradient-text {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-xl);
}
