/* ===============================
   GLOBAL RESET
   Remove default browser spacing
================================== */
body {
    margin: 0;
}


/* ===============================
   MAIN LAYOUT WRAPPER
   Full width container for slider + news
================================== */
.homepage-container {
    width: 100%;                 /* Full width */
    display: flex;               /* Side-by-side layout */
    gap: 20px;                   /* Space between slider & news */
    padding: 30px 40px;          /* Controlled inner spacing */
    box-sizing: border-box;      /* Prevent overflow issues */
}


/* ===============================
   SLIDER SECTION (LEFT SIDE)
================================== */
.slider-section {
    flex: 2;                     /* Takes 2 parts of layout */
    overflow: hidden;            /* 🔥 Prevents slide overflow/bleed */
    border-radius: 20px;         /* Rounded corners */
    background: #000;            /* Prevent white flash */
}


/* ===============================
   SLIDER CONTAINER
================================== */
.slider {
    width: 100%;
    height: 450px;
    overflow: hidden;            /* Ensures clean sliding */
    position: relative;
}


/* ===============================
   SLIDES WRAPPER
   Holds all slides horizontally
================================== */
.slides {
    display: flex;               /* Horizontal layout */
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out; /* Smooth animation */
    will-change: transform;      /* 🔥 Performance optimization */
}


/* ===============================
   INDIVIDUAL SLIDE
   Each slide takes EXACT 100%
================================== */
.slide {
    flex: 0 0 100%;              /* 🔥 FORCE exact 100% width (fix bleed issue) */
    width: 100%;
    height: 100%;
}


/* ===============================
   SLIDE IMAGE
================================== */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;           /* Prevent distortion */
    display: block;              /* 🔥 Remove inline image gap */
}


/* ===============================
   NEWS SECTION (RIGHT SIDE)
================================== */
.news-section {
    flex: 1;                     /* Takes 1 part of layout */
    background: #021061;
    padding: 20px;
    border-radius: 20px;
}


/* ===============================
   NEWS HEADER
================================== */
.news-section h3 {
    background: linear-gradient(135deg, #021061, #4AAFFA);
    color: #fff;
    padding: 12px;
    border-radius: 10px;
}

/* =========================================
   RESPONSIVE DESIGN (Without Breaking Layout)
============================================ */

/* Tablet View */
@media (max-width: 992px) {

    .homepage-container {
        flex-direction: column;      /* Stack slider + news */
        padding: 20px;
    }

    .slider {
        height: 350px;               /* Slightly smaller slider */
    }

    .news-section {
        width: 100%;
    }
}


/* Mobile View */
@media (max-width: 576px) {

    .homepage-container {
        padding: 15px;
        gap: 15px;
    }

    .slider {
        height: 250px;               /* Smaller height for mobile */
        border-radius: 15px;
    }

    .slider-section {
        border-radius: 15px;
    }

    .news-section {
        padding: 15px;
        border-radius: 15px;
    }

    .news-section h3 {
        font-size: 16px;
        padding: 10px;
    }

    .news-section p {
        font-size: 14px;
        margin: 8px 0;
    }
}

.homepage-container {
    align-items: stretch;   /* 🔥 Make both sides equal height */
}

.news-section {
    height: 100%;           /* Take full height of container */
    display: flex;
    flex-direction: column;
}

.slider img {
  width: 100%;
  height: 500px;   /* apni requirement ke hisaab se */
  object-fit: contain;  /* IMPORTANT */
}

.slider {
  width: 100%;
  height: 500px;
  overflow: hidden;
  position: relative;
  border-radius: 25px;
}

.slide {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('team.png') center/cover no-repeat;
  filter: blur(3px);
  transform: scale(1.1);
}

.slide img {
  position: relative;
  height: 100%;
  width: auto;
  display: block;
  margin: auto;
  z-index: 2;
}

/* photo source  */

