* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 100%;
}

:root {
    --white-color: #ffff;
    --transparent-color: #00000080;
    --icon-color: #0078ff;
    --black-color: #000000;
    /* statitics root  */
    --magazine-color: #e74c3c;
    --website-color: #2ecc71;
    --language-color: #9b59b6;
    --geography-color: #e67e22;
    --black-color: #2d3436;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    /* font-family: 'Roboto', sans-serif;
    font-weight: 400; */
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h6 {
    color: var(--black-color);
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/************************************************ Navbar *******************************************************************************/

.navbar {
    background-color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid #ddd;
}

.navbar-brand img {
    height: 100px;
    width: auto;
}

.navbar-nav .nav-link {
    color: #1a1a1a;
    padding: 0.5rem 0.75rem;
    transition: color 0.3s, background-color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #fff;
    background-color: #0d6efd;
    border-radius: 0.25rem;
}

.dropdown-menu {
    background-color: #f8f9fa;
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.dropdown-menu .dropdown-item:hover {
    background-color: #0d6efd;
    color: #fff;
}

/************************************    navbar--1  *****************************************************************************/

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 70px !important;
    }
}

@media (max-width: 576px) {
    .navbar-nav {
        text-align: center;
    }
    .nav-item {
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }
}

/*********************************************************** image-carousel ********************************************************************/

/* *****************img-carousel---1 */

.iii {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.carousel,
.carousel-inner,
.carousel-item {
    width: 100vw;
}

.image-section {
    height: 800px;
    width: 100vw;
    background-size: cover;
    background-position: center;
    position: relative;
    opacity: 0;
    animation: fadeInImage 1s ease forwards;
}

/* ✨ Mobile-specific image inside hero section */

.mobile-image {
    display: none;
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 80px;
    z-index: 2;
}

.text-content {
    text-align: justify;
    color: white;
    max-width: 700px;
    padding: 20px;
    opacity: 0;
    transform: translateX(100px);
    animation: slideInRight 1s ease forwards;
    z-index: 3;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.subheading {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
}

.btn-learn-more {
    padding: 12px 30px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-learn-more:hover {
    background: white;
    color: #333;
}

.section-nav {
    position: absolute;
    bottom: 30px;
    left: 80px;
    display: flex;
    gap: 10px;
    z-index: 4;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.3s;
}

.nav-dot.active {
    background: white;
}

/* Responsive Styling */

@media (max-width: 768px) {
    .content-overlay {
        padding: 30px;
        justify-content: center;
        text-align: center;
    }
    .text-content {
        max-width: 100%;
        text-align: center;
    }
    .section-nav {
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
    }
    /* Show mobile image, hide desktop bg */
    .image-section {
        background-image: none !important;
    }
    .mobile-image {
        display: block;
    }
}

@media (max-width: 480px) {
    .btn-learn-more {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .section-nav {
        bottom: 15px;
    }
}

/* **************************************************************************************************************************************************************** */

/* new statictics */

.stat1 {
    background-color: #f7f7f7;
    padding: 4rem 0;
}

.stat-card {
    background: white;
    border-radius: 15px;
    transition: all 0.4s ease;
    padding: 25px;
    margin: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--category-color), transparent);
    opacity: 0.3;
    transition: all 0.4s ease;
}

.stat-item:hover .stat-card {
    transform: translateY(-15px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.stat-item:hover .stat-card::before {
    opacity: 1;
    height: 6px;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--category-color), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.4s ease;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin: 15px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    color: var(--category-color);
}

.stat-text {
    color: var(--black-color);
    font-size: 1.1rem;
    font-weight: 500;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease;
}

.stat-item.in-view .stat-number,
.stat-item.in-view .stat-text {
    opacity: 1;
    transform: translateY(0);
}

/* Individual category colors */

.magazines {
    --category-color: var(--magazine-color);
}

.websites {
    --category-color: var(--website-color);
}

.languages {
    --category-color: var(--language-color);
}

.geographies {
    --category-color: var(--geography-color);
}

@keyframes iconPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ******************************************************************************************************************************************************************** */

/* advertisment section */

.ad-section {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Ensure the ad section takes up the full width */
}

.ad-banner {
    width: 100%;
    /* Ensure the banner spans the entire width */
    height: auto;
    /* Dynamically adjust height based on aspect ratio */
    object-fit: contain;
    /* Ensure image fits entirely without cropping */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.ad-link:hover .ad-banner {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.ad-link:active .ad-banner {
    transform: scale(0.98);
}

/* Loading Animation */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__animated {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Pulsing Effect */

@keyframes subtlePulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
    }
}

.ad-banner:hover {
    animation: subtlePulse 2s infinite;
}

/* Mobile Responsive */

@media (max-width: 767px) {
    .ad-banner {
        height: 200px;
        /* Shrink height for tablets */
        width: 100vw;
        /* Ensure the width spans the full viewport */
        object-fit: contain;
        /* Ensure image is not cropped */
    }
}

@media (max-width: 575px) {
    .ad-banner {
        height: 150px;
        /* Further shrink height for very small screens */
        width: 100vw;
        /* Ensure the width spans the full viewport */
        object-fit: contain;
        /* Ensure image is not cropped */
    }
}

/* ********************************************************************************************************************************************** */

/* our journey 2 */

.timeline-section {
    background-color: #f7f7f7;
}

.timeline-wrapper {
    overflow: hidden;
    padding: 20px 40px;
}

.timeline-track {
    display: flex;
    position: relative;
    gap: 40px;
    transition: transform 0.5s ease;
    align-items: center;
    padding-right: 60px;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #0277bd;
    z-index: 0;
    transform: translateY(-50%);
}

.timeline-item {
    flex: 0 0 calc(100% / 3);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.up {
    flex-direction: column-reverse;
}

.timeline-year {
    background: #0277bd;
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(2, 119, 189, 0.3);
    margin: 20px 0;
}

.timeline-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Mobile responsiveness */

@media (max-width: 992px) {
    .timeline-item {
        flex: 0 0 100%;
        /* Each item takes full width on tablet */
    }
    .timeline-track::before {
        top: 70px;
    }
    .timeline-card {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .timeline-item {
        flex: 0 0 100%;
        /* Items should take full width */
    }
    .timeline-track {
        gap: 20px;
    }
    .timeline-track::before {
        top: 60px;
    }
    .timeline-card {
        min-height: auto;
    }
}

.timeline-item.spacer {
    min-width: 300px;
    background: transparent;
    pointer-events: none;
}

/* ********************************************************************************************************************************************** */

/* our publications 4  */

.publ {
    padding: 60px 20px;
    /* background: linear-gradient(315deg, #f8f9fa 0%, #e9ecef 100%); */
    background-color: #ffffff
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.mb-5 {
    margin-bottom: 3rem;
}

.card-container {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 30px 0;
    scroll-behavior: smooth;
}

.card-container::-webkit-scrollbar {
    height: 8px;
    background: rgba(2, 119, 189, 0.1);
}

.card-container::-webkit-scrollbar-thumb {
    background: #b4c8f3;
    border-radius: 4px;
}

.card {
    flex: 0 0 320px;
    height: 440px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.imgBx {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.imgBx img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 2;
}

.card:hover .details {
    opacity: 1;
    transform: translateY(0);
}

.details h2 {
    font-size: 1.3rem;
    color: #0277bd;
    margin-bottom: 10px;
}

.details p {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #333;
    word-wrap: break-word;
}

.details a {
    display: inline-block;
    background: #0277bd;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.details a:hover {
    background: #01579b;
}

.carousel-nav {
    text-align: center;
    margin-bottom: 30px;
}

.nav-btn {
    background: #0277bd;
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 30px;
    margin: 0 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.nav-btn:disabled {
    background: #b3e5fc;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .card {
        flex: 0 0 280px;
        height: 420px;
    }
}

/* Optional extra style */

.video-container {
    width: 360px;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

video {
    border-radius: 16px;
}

/* footer */

.footer {
    background-color: white;
    color: #0d0b2d;
    padding: 20px 0;
}

.footer .footer-logo img {
    max-width: 150px;
}

.footer .footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.footer .social-icons a {
    color: #0d0b2d;
    margin: 0 10px;
    font-size: 1.5rem;
}