@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif; /* Ensures Poppins is used consistently */
}

:root {
    --primary-color: #12228b;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #6c757d;
    --border-color: #eaeaea;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    
    /* FONT SIZE VARIABLES FOR CONSISTENCY */
    --font-xs: 0.8rem;
    --font-sm: 0.9rem;
    --font-base: 1rem;
    --font-md: 1.1rem;
    --font-lg: 1.3rem;
    --font-xl: 1.5rem;
    --font-2xl: 1.8rem;
    --font-3xl: 2rem;
    --font-4xl: 2.5rem;
    --font-5xl: 3.5rem;
}

/* BASE TYPOGRAPHY - FIXED FOR CONSISTENCY */
body {
    font-family: 'Poppins', sans-serif !important; /* Added !important to override Bootstrap */
    font-size: var(--font-base);
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--light-color);
}

/* HEADINGS - FIXED FOR CONSISTENCY */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif !important; /* Fixed: Changed from serif to sans-serif */
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--font-3xl);
}

h2 {
    font-size: var(--font-2xl);
}

h3 {
    font-size: var(--font-xl);
}

h4 {
    font-size: var(--font-lg);
}

h5 {
    font-size: var(--font-md);
}

h6 {
    font-size: var(--font-base);
}

p {
    font-size: var(--font-base);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Header & Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif !important; /* Fixed: Changed from serif to sans-serif */
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--primary-color);
}

.nav-link {
    font-size: var(--font-base);
    font-weight: 500;
    margin: 0 0.5rem;
    color: var(--dark-color);
    transition: var(--transition);
}

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

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Search Modal */
.search-modal .modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.search-modal .modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.search-modal .modal-body {
    padding: 2rem;
}

.search-input-group {
    position: relative;
}

.search-input {
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    font-size: var(--font-md);
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    z-index: 5;
}

.search-results {
    margin-top: 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.search-result-item:hover {
    background-color: var(--light-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.search-result-excerpt {
    color: var(--text-light);
    font-size: var(--font-sm);
    margin-bottom: 0;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-title {
    font-size: var(--font-5xl);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: var(--font-lg);
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background-color: var(--secondary-color);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-size: var(--font-base);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 3;
}

.author-social a {
    text-decoration: none !important;
}

.author-social a:hover {
    text-decoration: none !important;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: white;
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 3;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

/* Featured Posts */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--primary-color);
    border: none;
    box-shadow: none;
}

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

.featured-post {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 2rem;
    height: 100%;
}

.featured-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.featured-post img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    color: var(--text-light);
    font-size: var(--font-sm);
    margin-bottom: 0.5rem;
}

.post-title {
    font-size: var(--font-lg);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: var(--font-base);
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: var(--font-base);
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-color);
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Blog Posts */
.blog-post {
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.blog-post:hover {
    transform: translateY(-5px);
}

.blog-post img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Sidebar */
.sidebar-widget {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: var(--font-lg);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.about-author img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.popular-post {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.popular-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1rem;
}

.popular-post-content h5 {
    font-size: var(--font-base);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.popular-post-content .post-meta {
    font-size: var(--font-xs);
    margin-bottom: 0;
}

.tag {
    display: inline-block;
    background-color: #f1f1f1;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    margin: 0.3rem;
    font-size: var(--font-sm);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer h5 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-size: var(--font-lg);
}

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

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: var(--font-base);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: #bdc3c7;
    font-size: var(--font-sm);
}

/* About Page Styles */
.content-section {
    padding: 80px 15px 60px;
    margin-top: 0px;
}

.content-section h1 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-size: var(--font-3xl);
}

.content-section h2 {
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: var(--font-2xl);
}

.content-section p {
    font-size: var(--font-base);
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
}

/* Contact Page Styles */
.hero-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 15px;
    margin-top: 90px;
    text-align: center;
}

.hero-section h1 {
    font-size: var(--font-4xl);
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: var(--font-md);
    color: #e2e8f0;
}

.contact-section {
    padding: 60px 15px;
    max-width: 1200px;
    margin: auto;
}

.section-subtitle {
    font-size: var(--font-md);
    color: var(--text-light);
    margin-bottom: 40px;
    border: none;
    box-shadow: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.contact-card {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info h3 {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-info p {
    font-size: var(--font-base);
    color: var(--text-light);
}

.form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.form-container h3 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    border: none;
    box-shadow: none;
    font-size: var(--font-xl);
}

.form-container .form-label {
    font-weight: 500;
    margin-bottom: 5px;
    font-size: var(--font-base);
}

.form-container .form-control {
    border-radius: 8px;
    padding: 10px;
    font-size: var(--font-base);
}

.form-container button.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    font-size: var(--font-base);
    transition: background-color 0.3s ease;
}

.form-container button.btn-primary:hover {
    background-color: #0f1d6e;
}

.map-container iframe {
    border-radius: 15px;
    width: 100%;
    height: 350px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: var(--font-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-base);
    }
    
    .slider-arrow {
        display: none;
    }

    .content-section {
        padding: 60px 15px 40px;
        margin-top: 10px;
    }
    
    .content-section h1 {
        font-size: var(--font-2xl);
        margin-bottom: 25px;
    }
    
    .content-section h2 {
        margin-top: 30px;
        font-size: var(--font-xl);
    }
    
    .content-section p {
        font-size: var(--font-base);
    }

    .hero-section h1 {
        font-size: var(--font-3xl);
    }
      #one{
        margin-left: -480px;
    }
    .hero-section p {
        font-size: var(--font-base);
    }
}

@media (max-width: 576px) {
    .content-section {
        padding: 50px 10px 30px;
    }
    .contact-info{
        text-align: center;
    }
    #one{
        margin-left: -140px;
    }
    .hero-section{
        margin-top: 90px;
    }
    
    h1 {
        font-size: var(--font-2xl);
    }
    
    h2 {
        font-size: var(--font-xl);
    }
    
    .hero-title {
        font-size: var(--font-3xl);
    }
}