/* ========================================
   INDEX.CSS – IRIS-ITVT HOMEPAGE
   Fully responsive, no inline overrides
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0d47a1;
    --secondary-color: #ffffff;
    --accent-color: #ff2d20;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --btn-red: #e02618;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row { 
    display: flex; 
    flex-wrap: wrap; 
    margin: 0 -15px; 
}
[class*="col-"] { padding: 0 15px; }

/* Grid columns */
.col-lg-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }

/* ---------- Hero Section ---------- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1976d2 100%);
    padding: 120px 0 100px;
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
    padding-top: 30px !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; }

.hero-section h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.hero-section p { 
    font-size: 1.15rem; 
    margin-bottom: 2rem; 
    opacity: .95; 
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons (same look, fully fluid) */
.btn-explore, .btn-contact, .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--btn-red);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    min-width: 160px;
    height: 49px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(255, 45, 32, .3);
}
.btn-explore:hover, .btn-contact:hover, .btn-cta:hover {
    background: var(--btn-red);
    color: #000;
    box-shadow: 0 8px 25px rgba(255, 45, 32, .4);
}

/* Hero Image & Counters */
.hero-image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,.3);
}
.hero-main-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .4s ease;
}
.hero-image-wrapper:hover .hero-main-img { transform: scale(1.05); }

/* Desktop absolute counters */
.hero-counter {
    position: absolute;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    padding: 12px 16px;
    min-width: 130px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    z-index: 20;
    font-weight: 700;
}
.students-counter { top: 10%; right: -2%; }
.courses-counter  { top: 55%; right: 77%; }

.hero-counter h3 {
    font-size: 2.8rem !important;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    color: #1e40af;
}
.hero-counter p {
    font-size: .85rem;
    margin-top: 4px;
    color: #1e40af;
    font-weight: 500;
    letter-spacing: .5px;
}
.courses-counter h3 { font-size: 2.4rem !important; }

/* Mobile counters (stacked) */
.hero-counters-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.hero-counters-mobile .hero-counter {
    position: static;
    flex: 1 1 130px;
}

/* ---------- About Section ---------- */
.about-section { padding: 100px 0; background: var(--secondary-color); }
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: .75rem auto 0 auto; /* Centered */
    border-radius: 2px;
}
.section-title1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}
.section-title1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: .75rem auto 0 auto; /* Centered */
    border-radius: 2px;
}
.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.1);
}
.about-image img { width: 100%; display: block; }

.stats-row {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.stat-box {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg,var(--primary-color),#1976d2);
    border-radius: 15px;
    transition: var(--transition);
}
.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(13,71,161,.2);
}
.stat-box h3 { color:#fff; font-size:2.5rem; font-weight:700; margin-bottom:.5rem; }
.stat-box p { color:#fff; margin:0; font-weight:500; font-size:.95rem; }

/* ---------- Why Choose / News / CTA ---------- */
.why-choose-section, .news-section { padding:100px 0; background:var(--bg-light); }

.feature-box, .news-card {
    background:#fff;
    padding:2rem;
    border-radius:15px;
    text-align:center;
    height:100%;
    box-shadow:0 5px 15px rgba(0,0,0,.05);
    transition:var(--transition);
}
.feature-box:hover, .news-card:hover {
    transform:translateY(-10px);
    box-shadow:0 15px 40px rgba(13,71,161,.15);
}
.feature-icon {
    width:80px;height:80px;
    background:linear-gradient(135deg,var(--primary-color),#1976d2);
    border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    margin:0 auto 1.5rem;
    transition:.3s;
}
.feature-box:hover .feature-icon { transform:scale(1.1); }
.feature-icon svg { width:40px;height:40px;fill:#fff; }

.feature-box h4, .news-content h5 { color:var(--primary-color);font-weight:600;margin-bottom:1rem; }

.news-image {
    height:220px;
    background:linear-gradient(135deg,#1976d2,var(--primary-color));
    display:flex;align-items:center;justify-content:center;
}
.news-image svg { width:80px;height:80px;fill:#fff;opacity:.8; }
.news-date { color:var(--accent-color);font-size:.9rem;font-weight:500;margin-bottom:.5rem; }

/* CTA */
.cta-section {
    background:linear-gradient(135deg,var(--primary-color),#1976d2);
    color:#fff;text-align:center;
    padding:100px 20px;
    position:relative;overflow:hidden;
}
.cta-section::before,.cta-section::after{
    content:'';position:absolute;
    width:500px;height:500px;
    background:rgba(255,255,255,.1);
    border-radius:50%;
}
.cta-section::before{top:-50%;right:-10%;}
.cta-section::after{bottom:-50%;left:-10%;}
.cta-section h2{font-size:2.6rem;font-weight:800;margin-bottom:1rem;}
.cta-section p{font-size:1.15rem;margin-bottom:2rem;color:#e3f2fd;}
.btn-cta{
    background:var(--btn-red);color:#fff;
    padding:1rem 3rem;font-weight:700;font-size:18px;
    box-shadow:0 8px 25px rgba(224,38,24,.4);
}
.btn-cta:hover{
    background:var(--btn-red);color:#000;
    box-shadow:0 15px 35px rgba(224,38,24,.5);
}
@keyframes pulse{
    0%,100%{box-shadow:0 8px 25px rgba(224,38,24,.4);}
    50%{box-shadow:0 8px 35px rgba(224,38,24,.6);}
}
.btn-cta{animation:pulse 2s infinite;}

/* ---------- Modal ---------- */
.welcome-modal{
    display:none;position:fixed;z-index:9999;
    left:0;top:0;width:100%;height:100%;
    background:rgba(0,0,0,.6);
    justify-content:center;align-items:center;
}
.welcome-modal-content{
    background:#fff;padding:30px 40px;
    border-radius:15px;text-align:center;
    max-width:400px;animation:fadeIn .5s;position:relative;
}
.welcome-modal-content h2{font-size:24px;margin-bottom:15px;color:var(--primary-color);}
.welcome-modal-content p{font-size:16px;margin-bottom:20px;color:#333;}
.btn-apply{background:var(--accent-color);color:#fff;padding:10px 25px;border-radius:8px;font-weight:600;}
.btn-apply:hover{background:#e02b1c;}
.close-btn{position:absolute;top:15px;right:20px;font-size:24px;font-weight:bold;cursor:pointer;color:var(--accent-color);}
@keyframes fadeIn{from{opacity:0;transform:scale(.9);}to{opacity:1;transform:scale(1);}}





/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Large desktops */
@media (max-width: 1200px) {
    .students-counter { top: 15%; right: 2%; }
    .courses-counter  { top: 55%;margin-top: 10px ;right: 2%; }
}

/* Tablets & small laptops */
@media (max-width: 991px) {
    .col-lg-6, .col-lg-4 { flex:0 0 100%; max-width:100%; }
    .hero-section { padding:80px 0; text-align:center; }
    .hero-section h1 { font-size:2.5rem; }
    .hero-buttons { justify-content:center; }
    .hero-image-wrapper { margin:40px auto; max-width:80%; }
    .stats-row { grid-template-columns:1fr; }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section h1 { font-size:2rem; }
    .hero-section p { font-size:1rem; }
    .section-title { font-size:2rem; }
     .section-title1 { font-size:2rem; }
    .about-section,
    .why-choose-section,
    .news-section,
    .cta-section { padding:60px 0; }

    .hero-buttons { flex-direction:column; align-items:center; }
    .btn-explore,
    .btn-contact,
    .btn-cta {margin-left: -8px; width:100%; max-width:260px; }

    .hero-counters-mobile .hero-counter { flex:1 1 100%; min-width:auto; }
    .hero-counter h3 { font-size:2.2rem !important; }
    .hero-counter p { font-size:.8rem; }

    .stats-row .stat-box h3 { font-size:2rem; }
}

/* Extra small phones */
@media (max-width: 480px) {
    .hero-section h1 { font-size:1.8rem; }
    .section-title { font-size:1.8rem; }
    .about-image img {margin-top: 10px;}
    .btn-explore,
    .btn-contact,
    .btn-cta { font-size:16px; padding:.65rem 1.5rem; min-width:auto; }

    .hero-counter h3 { font-size:1.9rem !important; }
}

/* Swiper Customizations */
.swiper-button-next,
.swiper-button-prev {
    display: none !important; /* Hide navigation buttons */
    color: var(--primary-color) !important;
    --swiper-navigation-size: 30px;
    border-radius: 50%;
    width: 50px !important;
    height: 50px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    background: white; /* Make buttons stand out */
}

/* Position prev button in the 'empty space' on the left */
.swiper-button-prev {
    left: 0px !important;
}

/* Position next button in the 'empty space' on the right */
.swiper-button-next {
    right: 0px !important;
}
.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: 900;
}
.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}
.course-slider {
    padding-bottom: 50px; /* Space for pagination */
    position: relative; /* This is crucial for positioning nav buttons */
}

/* When Swiper is NOT initialized (on mobile) */
.course-slider:not(.swiper-initialized) .swiper-wrapper {
    display: block;
}

.course-slider:not(.swiper-initialized) .swiper-slide {
    margin-bottom: 30px; /* Add vertical gap between cards */
}

/* Hide nav/pagination on mobile when slider is disabled */
@media (max-width: 767px) {
    .course-slider .swiper-button-next,
    .course-slider .swiper-button-prev,
    .course-slider .swiper-pagination {
        display: none;
    }
}

/* Force block display on mobile for non-slider view */
@media (max-width: 767px) {
    .course-slider:not(.swiper-initialized) .swiper-wrapper {
        display: block;
    }

    .course-slider:not(.swiper-initialized) .swiper-slide {
        width: 100%;
        margin-bottom: 30px;
    }
}