:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --success-color: #38b000;
}

html {
    overflow-y: scroll; 
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;

    padding-right: 0 !important; 
    transition: padding-right 0.3s ease; 
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Navbar */
.navbar {
    background-color: transparent !important;
    box-shadow: none;
    padding: 15px 0;
    transition: all 0.3s ease;

    will-change: transform, background-color;
    transform: translateY(-10px);
    opacity: 0;
    animation: fadeInNav 0.5s ease forwards 0.3s;
}

@keyframes fadeInNav {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
}

.navbar-search {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-icon-circle svg {
    width: 18px;
    height: 18px;
    color: var(--dark-color);
}

.search-icon-circle:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .search-icon-circle {
        width: 36px;
        height: 36px;
    }
    
    .search-icon-circle svg {
        width: 16px;
        height: 16px;
    }
}

.navbar-menu {
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.menu-icon-circle svg {
    width: 18px;
    height: 18px;
    color: var(--dark-color);
}

.menu-icon-circle:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .menu-icon-circle {
        width: 36px;
        height: 36px;
    }
    
    .menu-icon-circle svg {
        width: 16px;
        height: 16px;
    }
}

.search-icon-circle svg,
.menu-icon-circle svg {
    color: white;
    transition: all 0.3s ease;
}

.navbar.scrolled .search-icon-circle svg,
.navbar.scrolled .menu-icon-circle svg {
    color: var(--dark-color);
}

/* .navbar-brand img {
    height: 50px;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.navbar.scrolled .navbar-brand img {
    opacity: 1;
    visibility: visible;
}

.navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
} */

.navbar-menu img {
    height: 50px;
    transition: all 0.3s ease;
}

.navbar-collapse {
    flex-grow: 0; 
}

.navbar > .container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    position: relative;
}

.nav-link {
    font-weight: 500;
    color: white !important;
    margin: 0 8px;
    position: relative;
    padding: 8px 12px !important;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-link {
    color: var(--dark-color) !important; 
}
  
.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.navbar.scrolled .nav-link:after {
    background-color: var(--primary-color);
}
  
.nav-link:hover:after {
    width: 100%;
}
  
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}
  
.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}
  
/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(26, 26, 46, 0.7), rgba(26, 26, 46, 0.7)), 
                url('https://images.unsplash.com/photo-1589998059171-988d887df646?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1776&q=80') no-repeat center center/cover;
    color: white;
    overflow: hidden;

    margin-bottom: 0; 
}
  
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
  }
  
.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
  
.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* News Section */
.main-content {
    position: relative;
    z-index: 2;
    background-color: white; 
}

.news-section {
    padding: 80px 0;
    background-color: white;
}
  
.section-title {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 60px; 
    margin-top: 20px; 
}
  
.section-title:after {
    content: '';
    position: absolute;
    width: 15%;
    height: 3px;
    bottom: -15px; 
    left: 1;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}
  
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    
    display: flex;
    flex-direction: column;
    height: 100%;
}
  
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
  
.card-img-top {
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}
  
.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
  
.card-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}
  
.card-text {
    color: #666;
    margin-bottom: 20px;
}
  
.btn-outline-primary {
    margin-top: auto;
    align-self: flex-start; 
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 30px;
    padding: 6px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}
  
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.row.g-4 > [class*="col-"] {
    display: flex;
}
  
/* Animations */
@keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}
  
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}
  
@media (max-width: 992px) {
    .hero-section h1 {
      font-size: 2.8rem;
    }
}
  
@media (max-width: 768px) {
    .hero-section {
      height: auto;
      padding: 100px 0;
    }
    
    .hero-section h1 {
      font-size: 2.2rem;
    }
    
    .hero-section p {
      font-size: 1rem;
    }
    
    /* .navbar-brand img {
        height: 40px;
    } */

    .navbar-menu img {
        height: 40px;
    }
}

