/* ======= Home Page ======= */
body {
    background-color: #f3f5f9 !important;
}

* {
    font-family: "Roboto Slab", serif !important;
}

/* header */
.sticky-top a,
.sticky-top span {
    transition: color 0.3s, text-decoration 0.3s;
}

.sticky-top a:hover,
.sticky-top span:hover {
    color: #ffc107 !important;
    text-decoration: underline;
    cursor: pointer;
}
.btn,
.btn:hover,
.btn:focus {
    text-decoration: none !important;
}

/* Remove underline from social icons */
.sticky-top .d-flex a,
.sticky-top .d-flex a:hover,
.sticky-top .d-flex a:focus {
    text-decoration: none !important;
}



.navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    visibility: visible;
    opacity: 1;
}
.sticky-top .nav-link,
.sticky-top .nav-link:hover {
    text-decoration: none !important;
}



.navbar .dropdown-menu {
    display: none;
    transition: all 0.3s ease;
}

.navbar-toggler {
    background-color: #ffffff !important;
}
.fa-brands, .fab {
    font-family: "Font Awesome 6 Brands" !important;
}
.fa-classic, .fa-regular, .fa-solid, .far, .fas {
    font-family: "Font Awesome 6 Free" !important;
}
/* header End */



/* banner css */
.hero-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    padding-left: 120px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.05) 100%
    );
    color: #fff;
    box-sizing: border-box;
}

.slide-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.slide-tags span {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 20px;
    text-transform: uppercase;
    backdrop-filter: blur(3px);
    letter-spacing: 1px;
}

.slide-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.read-link {
    font-size: 16px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
    cursor: pointer;
}

.read-link i {
    display: inline-block;
    background: #fff;
    color: #000;
    font-weight: bold;
    border-radius: 50%;
    padding: 4px 10px;
    font-style: normal;
    transition: background 0.3s ease;
}

.read-link:hover i {
    background: #f0f0f0;
}

.slide-badges {
    width: 100%;
    height: 100px;
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    box-sizing: border-box;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
}

.badge {
    flex: 1 1 300px;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    font-size: 14px !important;
    padding: 16px 40px !important;
    border-radius: 10px !important;
    box-sizing: border-box;
    text-align: center !important;
    transition: background 0.3s ease;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
    white-space: normal !important;
    margin: 6px;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* mobile */
@media (max-width: 768px) {
    .slide-content {
        padding: 30px 20px;
        margin-left: 0;
        max-width: 100%;
        background: rgba(0, 0, 0, 0.6);
    }

    .slide-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 16px;
    }

    .slide-tags {
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 12px;
    }

    .slide-tags span {
        font-size: 11px;
        padding: 4px 10px;
    }

    .read-link {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .read-link i {
        padding: 4px 8px;
        font-size: 14px;
    }

    .badge {
        font-size: 12px !important;
        padding: 12px 20px !important;
        flex: 1 1 100%;
        max-width: 100%;
    }

    .slide-badges {
        display: none;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }
}
/* End Banner Css */

/* top story */
.story-card {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.story-card.large.tall {
    height: 380px;
}

@media (max-width: 992px) {
    .story-card.large.tall {
        height: 360px;
    }
}

@media (max-width: 768px) {
    .story-card.large.tall {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .story-card.large.tall {
        height: 260px;
    }
}

.story-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
    color: white;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.story-card .title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.story-card .title.small {
    font-size: 0.8rem;
}

.story-card .author {
    font-size: 0.75rem;
    color: #ccc;
    margin: 0;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.story-card:hover img {
    transform: scale(1.05);
}

.story-card:hover .overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}
/* Ent top story */


/* Blog section */
/* ========== ANIMATIONS ========== */

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    60% {
        opacity: 1;
        transform: translateY(-4px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(60px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes blink-blue-glow {
    0%,
    100% {
        color: #007bff;
        text-shadow: 0 0 6px rgba(0, 123, 255, 0.6);
    }
    50% {
        color: #000;
        text-shadow: none;
    }
}

/* ========== BLOG CARDS ========== */

.animated-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.card-title {
    font-size: 20px;
    font-family: "Roboto Serif";
}
.animated-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 10px 24px rgba(0, 123, 255, 0.2);
}

.animated-card img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.animated-card:hover img {
    transform: scale(1.07);
}

/* Animation Delays */
.animated-card:nth-child(1) {
    animation-delay: 0.1s;
}
.animated-card:nth-child(2) {
    animation-delay: 0.2s;
}
.animated-card:nth-child(3) {
    animation-delay: 0.3s;
}
.animated-card:nth-child(4) {
    animation-delay: 0.4s;
}
.animated-card:nth-child(5) {
    animation-delay: 0.5s;
}
.animated-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* ========== TIMELINE / LATEST SECTION ========== */

.latest-timeline {
    border-left: 2px solid #ccc;
    padding-left: 15px;
    position: relative;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.2rem;
    padding-left: 10px;
    transition: transform 0.3s ease;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 2px;
    width: 10px;
    height: 10px;
    background-color: #555;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #ccc;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item .time {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 4px;
    white-space: nowrap;
}

.timeline-item .title {
    font-family: "Roboto Serif";
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    color: #000;
    animation: blink-blue-glow 2s infinite;
    transition: all 0.3s ease;
}

.latest-timeline:hover .timeline-item .title {
    animation: none;
    color: #000;
    text-shadow: none;
}

.timeline-item:hover {
    transform: scale(1.02);
}

.timeline-item:hover .title {
    color: #007bff !important;
    text-shadow: 0 0 8px rgba(0, 123, 255, 0.7);
}

.timeline-item:hover::before {
    background-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.4);
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
    opacity: 0;
    transform: translateX(60px);
}

/* Sticky positioning for Latest (optional) */
.sticky-latest {
    position: sticky;
    top: 90px;
}

/* ========== BUTTON LINK ========== */

.more-link {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #fff;
    background-color: #007bff;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.more-link:hover {
    background-color: #0056b3;
    color: #fff;
    box-shadow: 0 6px 14px rgba(0, 123, 255, 0.3);
}

/* ========== RESPONSIVE STYLES ========== */

@media (max-width: 768px) {
    .animated-card {
        min-height: 260px;
        padding: 12px;
    }

    .animated-card img {
        height: 160px;
    }

    .timeline-item .title {
        font-size: 0.85rem;
    }

    .sticky-latest {
        position: static;
    }
}

@media (max-width: 576px) {
    .animated-card {
        min-height: 240px;
        padding: 10px;
    }

    .animated-card img {
        height: 140px;
    }

    .timeline-item .title {
        font-size: 0.8rem;
    }

    .more-link {
        display: block;
        margin: 0 auto;
        font-size: 0.7rem;
        padding: 6px 16px;
        text-align: center;
    }
}
.fw-bold {
    font-weight: 700 !important;
    font-size: 30px;
    font-family: "Roboto Serif";
}
@media (max-width: 767.98px) {
    .hide-on-mobile {
        display: none !important;
    }
}

/* ====== News page Css ====== */
.news-modern-section {
    padding: 80px 0;
    background: #f3f5f9;
    overflow: hidden;
}

/* ============ Heading ============ */
.section-heading {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 1s ease;
}

.gradient-title {
    font-family: "Roboto Slab";
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, #385581, #385581 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    margin-bottom: 10px;
}

.section-subtext {
    font-family: "Roboto Slab";
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

/* ============ Card ============ */
/* Desktop: 3 cards in a row, no wrap */
@media (min-width: 992px) {
    #blog-list.row {
        flex-wrap: nowrap !important; /* keep all cards in one row */
    }

    #blog-list.row > .col-md-4 {
        flex: 0 0 33.333%;  /* 3 cards per row */
        max-width: 33.333%;
    }
}

/* Mobile: allow wrapping */
@media (max-width: 991.98px) {
    #blog-list.row {
        flex-wrap: wrap !important; /* wrap cards on smaller screens */
    }

    #blog-list.row > .col-md-4 {
        flex: 0 0 100%;  /* 1 card per row on mobile */
        max-width: 100%;
    }
}

.news-modern-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: fadeInUp 0.8s ease forwards;
    transform: translateY(20px);
}

.news-modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.15);
}

.card-img-container {
    position: relative;
    overflow: hidden;
}

.card-img-container img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-modern-card:hover img {
    transform: scale(1.08);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.4)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-modern-card:hover .img-overlay {
    opacity: 1;
}

.news-content {
    padding: 20px 22px 28px;
}

.news-title {
    font-family: "Roboto Slab";
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.news-text {
    font-family: "Roboto Slab";
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
}

.read-more {
    font-family: "Roboto Slab";
    font-weight: 600;
    color: #385581;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #385581;
}

/* ============ Button ============ */
.btn-news-more {
    font-family: "Roboto Slab";
    display: inline-block;
    padding: 14px 36px;
    background: #385581;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.btn-news-more:hover {
    background: #385581;
    box-shadow: 0 8px 20px rgba(6, 142, 253, 0.3);
}

/* ============ Animations ============ */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .gradient-title {
        font-size: 2rem;
    }
    .news-content {
        padding: 16px;
    }
}

/* footer */
.disclaimer {
    justify-content: center;
    align-items: center;
    padding: 3px;
    width: 100%;
    
    max-width: 1288px;
    border-radius: 12px;
    text-align: center;
    border: none; /* default: no border on desktop */
}

/* Apply border only on mobile (up to 768px width) */
@media (max-width: 768px) {
    .disclaimer {
        border: 2px solid #ffffff;
    }
}

footer {
    padding-top: 150px; /* Must match the overlap amount */
    position: relative;
    z-index: 1;
}
/* before footer */
.underline {
    width: 40px;
    height: 4px;
    background-color: #d22a2a;
}

.subscribe-wrapper {
    background-color: #ffffff;
    border-radius: 15px;
    margin-bottom: -100px; /* Pulls it over the footer */
    width: 90%;
    max-width: 950px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 3;
    position: relative;
}

@media (max-width: 576px) {
    .portfolio-section p {
        font-size: 14px;
    }

    .portfolio-section h3 {
        font-size: 20px;
    }

    .subscribe-wrapper {
        width: 95%;
        margin-bottom: 120px !important; /* Adjust overlap for mobile */
    }
}





/* blog-details */
   body {
      font-family: Arial, sans-serif;
      background-color: #e6f6ff;
      margin: 0;
      padding: 0;
    }

    .blog-container {
      display: flex;
      max-width: 1400px;
      margin: 0 auto;
      padding: 20px;
      gap: 20px;
    }

    /* Left section */
    .blog-content {
      flex: 2;
      background: #fff;
      padding: 20px;
      border-radius: 6px;
      box-shadow: 0 0 8px rgba(0,0,0,0.1);
    }

    .blog-date {
      font-size: 14px;
      color: #333;
      margin-bottom: 10px;
    }

    .blog-image img {
      width: 100%;
      border-radius: 6px;
      margin-bottom: 15px;
    }

    .blog-text {
      font-size: 16px;
      color: #222;
      line-height: 1.6;
    }

    /* Sidebar */
    .sidebar {
      flex: 1;
      background: #fff;
      padding: 20px;
      border-radius: 6px;
      box-shadow: 0 0 8px rgba(0,0,0,0.1);
      height:420px;
    }

    .sidebar h3 {
      font-size: 20px;
      font-weight: bold;
      margin-bottom: 20px;
      text-transform: uppercase;
    }

    .recent-post {
      display: flex;
      align-items: center;
      margin-bottom: 15px;
    }

    .recent-post img {
      width: 70px;
      height: 50px;
      object-fit: cover;
      border-radius: 4px;
      margin-right: 10px;
    }

    .recent-post div {
      display: flex;
      flex-direction: column;
    }

    .recent-post a {
      font-size: 14px;
      font-weight: bold;
      color: #000;
      text-decoration: none;
      margin-bottom: 3px;
    }

    .recent-post a:hover {
      color: #0073e6;
    }

    .recent-post span {
      font-size: 12px;
      color: #777;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .blog-container {
        flex-direction: column;
      }
    }