/* --- INDEX.HTML STYLES --- */

/* --- BRIGHT PICTURE HERO --- */
.hero-bright {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(to bottom, rgba(240, 249, 255, 0.9), rgba(240, 249, 255, 0.6)), 
                url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content-center h1 {
    font-size: 4rem;
    color: #0f172a; 
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(255,255,255,0.5); 
}

.hero-content-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 60px;
}

.badge-pill-white {
    background: #fff;
    color: #0284c7;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: inline-block;
    margin-bottom: 20px;
}

.highlight-blue {
    color: #0284c7;
}

.hero-content-center p {
    font-size: 1.25rem;
    color: #475569;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary-solid {
    background: #0284c7;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.3);
}

.btn-primary-solid:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

.btn-secondary-outline {
    background: rgba(255,255,255,0.8);
    color: #0f172a;
    border: 1px solid #cbd5e1;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary-outline:hover {
    background: #fff;
    color: #0284c7;
}

/* --- REFINED GLASS BOXES (Bottom Row) --- */
.hero-bottom-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.glass-box {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: 0.3s ease;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.box-icon {
    width: 50px;
    height: 50px;
    background: #0f172a;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
}

.box-info h3 {
    color: #0f172a;
    font-size: 1.1rem;
    margin: 0 0 5px;
    font-weight: 700;
}

.box-info p {
    color: #475569;
    font-size: 0.9rem;
    margin: 0;
}

.box-arrow {
    margin-left: auto;
    color: #94a3b8;
    transition: 0.3s;
}

.glass-box:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: #38bdf8;
}

.glass-box:hover .box-icon {
    background: #0284c7;
}

.glass-box:hover .box-arrow {
    color: #0284c7;
    transform: translateX(5px);
}

/* --- PROFESSIONAL ABOUT SECTION --- */
.about-section { background-color: #f8fafc; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    z-index: 1;
}

.main-about-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: rotate(-2deg); 
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .main-about-img {
    transform: rotate(0deg);
}

.about-stat-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    display: flex;
    gap: 30px;
    align-items: center;
    z-index: 2;
}

.stat-number {
    font-size: 2rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: #e2e8f0;
}

.pattern-dots {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(#38bdf8 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: -1;
}

.section-title {
    font-size: 2.5rem;
    color: #0f172a;
    font-weight: 700;
    margin: 20px 0;
    line-height: 1.2;
}

.section-desc {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.about-checklist {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.about-checklist li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #334155;
}

.about-checklist i {
    color: #38bdf8;
    font-size: 1.2rem;
}

/* --- SERVICES MATRIX STYLES --- */
.service-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #f0f9ff;
    color: #0284c7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    transition: 0.3s;
}

.service-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
}

.service-box p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-link {
    color: #0284c7;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.service-link i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.service-box:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.1);
}

.service-box:hover .service-icon {
    background: #0284c7;
    color: #fff;
    transform: scale(1.1);
}

.service-box:hover .service-link {
    color: #0ea5e9;
}

.service-box:hover .service-link i {
    transform: translateX(5px);
}

/* --- VISUAL SERVICE CARDS --- */
.service-card-visual {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.icon-small {
    width: 50px;
    height: 50px;
    background: #0284c7;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: absolute;
    top: -25px;
    right: 30px;
    box-shadow: 0 5px 15px rgba(2, 132, 199, 0.3);
    transition: 0.3s;
}

.card-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 10px;
    margin-bottom: 15px;
}

.card-content p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-card-visual:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #38bdf8;
}

.service-card-visual:hover .card-image img {
    transform: scale(1.1);
}

.service-card-visual:hover .icon-small {
    transform: scale(1.1) rotate(5deg);
    background: #0ea5e9;
}

/* --- FEATURED COURSES SECTION --- */
.badge-pill {
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.course-img-wrapper {
    position: relative;
    height: 200px;
}

.course-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.level-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.level-tag.beginner { background: #2ecc71; }
.level-tag.intermediate { background: #f39c12; }
.level-tag.strategy { background: #9b59b6; }

.course-content {
    padding: 25px;
}

.meta-row {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.meta-row i { color: #3498db; }

.course-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.course-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f4f4f4;
    padding-top: 15px;
}

.price {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

.btn-link {
    color: #3498db;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-link:hover {
    color: #1d6fa5;
    text-decoration: underline;
}

/* --- TECH STACK MARQUEE --- */
.tech-stack-section {
    padding: 60px 0;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.marquee-content {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

.tech-item {
    display: inline-block;
    margin: 0 40px;
    font-size: 2.5rem;
    color: #cbd5e1;
    transition: 0.3s ease;
    text-align: center;
    cursor: default;
}

.tech-item span {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
}

.tech-item:hover {
    color: #3498db;
    transform: scale(1.1);
}

.tech-item:hover span {
    opacity: 1;
    transform: translateY(0);
    color: #333;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* --- PROCESS SECTION --- */
.process-section {
    background-color: #fff;
}

.process-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 20px;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.8rem;
    color: #3498db;
    position: relative;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: #2c3e50;
    color: #fff;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.process-step:hover .step-icon {
    border-color: #3498db;
    background: #f0f9ff;
    transform: translateY(-5px);
}

.process-step h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.process-step p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.process-connector {
    flex-grow: 1;
    height: 2px;
    background-image: linear-gradient(to right, #ccc 33%, rgba(255,255,255,0) 0%);
    background-position: bottom;
    background-size: 10px 1px;
    background-repeat: repeat-x;
    margin-top: 40px;
    opacity: 0.5;
}

/* --- PROFESSIONAL INDUSTRIES SCROLLER --- */
.scroller-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.industry-scroller-pro {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 30px 5px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    width: 100%;
}

.industry-scroller-pro::-webkit-scrollbar {
    display: none; 
}

.industry-card-pro {
    min-width: 360px;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.5);
    cursor: pointer;
    flex-shrink: 0;
}

.industry-card-pro img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.glass-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    padding: 20px 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    transition: 0.4s ease;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
    transition: 0.4s ease;
}

.icon-accent {
    color: #38bdf8;
    font-size: 1.6rem;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
}

.glass-panel h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.glass-panel p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.industry-card-pro:hover {
    transform: translateY(-10px);
}

.industry-card-pro:hover img {
    transform: scale(1.1);
}

.industry-card-pro:hover .glass-panel {
    background: rgba(15, 23, 42, 0.95);
    padding-bottom: 30px;
}

.industry-card-pro:hover .panel-header {
    margin-bottom: 15px;
}

.industry-card-pro:hover .glass-panel p {
    max-height: 100px;
    opacity: 1;
    margin-top: 5px;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    font-size: 1.2rem;
    color: #1e293b;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover {
    background: #38bdf8;
    color: #fff;
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.3);
}

.btn-left { left: -30px; }
.btn-right { right: -30px; }

/* --- FAQ ACCORDION STYLES --- */
.row-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.faq-header {
    flex: 1;
    max-width: 400px;
}

.faq-list {
    flex: 1.5;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.faq-question:hover {
    color: #3498db;
}

.icon-toggle {
    font-size: 0.9rem;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-answer p {
    color: #64748b;
    padding-bottom: 20px;
    line-height: 1.6;
    margin: 0;
}

.faq-item.active .icon-toggle {
    transform: rotate(45deg);
    color: #3498db;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Responsive */
@media (max-width: 900px) {
    .row-layout, .hero-actions { flex-direction: column; text-align: center; }
    .faq-header { max-width: 100%; margin-bottom: 30px; }
    .about-grid { grid-template-columns: 1fr; gap: 50px; }
    .about-image-wrapper { margin: 20px; }
    .main-about-img { transform: rotate(0deg); }
    .about-stat-card { right: 0; bottom: -20px; padding: 20px; width: 90%; }
    .service-matrix { grid-template-columns: 1fr; }
    .process-grid { flex-direction: column; gap: 40px; }
    .process-connector { display: none; }
    .hero-bottom-row { grid-template-columns: 1fr; }
    .hero-content-center h1 { font-size: 2.8rem; }
    .tech-item { margin: 0 20px; font-size: 2rem; }
    .industry-card-pro { min-width: 280px; height: 400px; }
    .scroll-btn { display: none; }
}
/* =========================================
   NEWSLETTER CAPSULE BLOCK
   ========================================= */

/* 1. Main Section Container */
.newsletter-banner {
    background-color: #1e293b; /* Dark Slate Navy */
    padding: 80px 0;
    border-top: 1px solid #334155; /* Subtle top border */
    color: #ffffff;
}

/* 2. Flexbox Layout (Text Left / Form Right) */
.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px; /* Space between text and form */
    max-width: 1100px;
    margin: 0 auto;
}

/* 3. Text Styling */
.newsletter-text {
    max-width: 500px;
}

.newsletter-text h2 {
    font-size: 2.2rem;
    font-weight: 800; /* Bold Heading */
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.newsletter-text p {
    font-size: 1.1rem;
    color: #94a3b8; /* Slate Grey Text */
}

/* 4. The "Capsule" Form Container */
.newsletter-form-pro {
    flex: 1; /* Takes remaining space */
    max-width: 480px;
}

.input-capsule {
    background-color: #ffffff; /* White Pill Background */
    border-radius: 50px; /* Fully rounded ends */
    padding: 5px 5px 5px 25px; /* Padding inside the pill */
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Drop shadow */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 5. The Input Field (Invisible Background) */
.input-capsule input {
    flex: 1; /* Fills the space */
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #0f172a; /* Dark text for typing */
    font-family: inherit;
}

.input-capsule input::placeholder {
    color: #94a3b8; /* Light grey placeholder */
}

/* 6. The Subscribe Button (Inside the Capsule) */
.input-capsule button {
    background-color: #38bdf8; /* Bright Tech Blue */
    color: #0f172a; /* Dark Text */
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevents text wrap */
}

.input-capsule button:hover {
    background-color: #0ea5e9; /* Slightly darker blue on hover */
    transform: translateX(-2px); /* Tiny nudge effect */
}

/* 7. Privacy Note (Below Form) */
.privacy-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #64748b;
    padding-left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-note i {
    color: #475569; /* Darker lock icon */
}

/* =========================================
   RESPONSIVE (Mobile)
   ========================================= */
@media (max-width: 900px) {
    .newsletter-content {
        flex-direction: column; /* Stack vertically */
        text-align: center;
        gap: 30px;
    }

    .newsletter-form-pro {
        width: 100%;
        max-width: 100%;
    }

    .newsletter-text h2 {
        font-size: 1.8rem;
    }
    
    .privacy-note {
        justify-content: center; /* Center align note */
        padding-left: 0;
    }
}

/* =========================================
   HERO RESPONSIVE FIXES (Mobile & Tablet)
   ========================================= */

@media (max-width: 900px) {

    /* 1. Fix Navbar Overlap & Container Height */
    .hero-bright {
        padding-top: 100px; /* Critical: Pushes text down below the fixed navbar */
        height: auto;       /* Disable fixed height so content fits */
        min-height: 100vh;  /* Ensure it still covers the screen */
        padding-bottom: 60px;
        background-attachment: scroll; /* Fixes background jitter on mobile */
    }

    /* 2. Resize the Giant Title */
    .hero-content-center h1 {
        font-size: 2.5rem; /* Reduced from 4rem for mobile */
        line-height: 1.2;
    }

    .hero-content-center p {
        font-size: 1.1rem;
        padding: 0 15px; /* Prevent text touching edges */
    }

    /* 3. Stack the Buttons Vertically */
    .hero-actions {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px; /* Add breathing room */
    }

    .btn-primary-solid, 
    .btn-secondary-outline {
        width: 100%; /* Full width buttons are easier to tap */
        justify-content: center;
    }

    /* 4. Stack the Glass Boxes (Bottom Row) */
    .hero-bottom-row {
        grid-template-columns: 1fr; /* Force 1 column layout */
        margin-top: 40px;
        padding: 0 10px;
    }

    .glass-box {
        padding: 20px; /* Slightly compact padding */
    }
}

/* =========================================
   ABOUT SECTION RESPONSIVE FIXES
   ========================================= */

@media (max-width: 900px) {

    /* 1. Stack the Grid vertically */
    .about-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 60px; /* Space between image and text */
        text-align: center; /* Center align text for mobile */
    }

    /* 2. Reorder: Image First, Text Second */
    .about-image-wrapper {
        order: -1; /* Moves image to the top */
        margin: 0 auto; /* Center the wrapper */
        max-width: 500px; /* Prevent it from being too huge */
    }

    .main-about-img {
        transform: rotate(0deg); /* Remove the tilt on mobile for cleaner look */
    }

    /* 3. Fix the Floating Stat Card */
    .about-stat-card {
        position: absolute;
        bottom: -30px; /* Hangs slightly off the bottom */
        left: 50%;
        transform: translateX(-50%); /* Centers it horizontally */
        right: auto; /* Reset desktop positioning */
        
        width: 90%; /* Responsive width */
        max-width: 400px;
        padding: 20px;
        justify-content: space-around; /* Distribute stats evenly */
    }

    /* 4. Align the Checklist */
    .about-checklist {
        display: inline-block; /* Helps with centering */
        text-align: left; /* Keep list items left-aligned for readability */
        margin-top: 20px;
    }

    .section-title {
        font-size: 2rem; /* Smaller heading on mobile */
    }
    
    .btn-text-arrow {
        justify-content: center; /* Center the link button */
        width: 100%;
    }
}

/* =========================================
   SERVICES SECTION RESPONSIVE FIX
   ========================================= */

@media (max-width: 900px) {
    /* 1. Stack the Service Cards */
    .service-matrix {
        grid-template-columns: 1fr; /* Force single column layout */
        gap: 40px; /* Add space between stacked cards */
        padding: 0 15px; /* Add side padding so cards don't touch edges */
    }

    /* 2. Adjust Card Height for Mobile */
    .service-card-visual {
        height: auto; /* Let card grow naturally */
    }

    .card-image {
        height: 180px; /* Slightly shorter image on mobile */
    }

    /* 3. Center the Section Header */
    .text-center h2 {
        font-size: 2.2rem !important; /* Smaller heading */
    }
}

/* =========================================
   FEATURED COURSES RESPONSIVE FIX
   ========================================= */

@media (max-width: 900px) {

    /* 1. Stack the Grid */
    .course-grid {
        grid-template-columns: 1fr !important; /* Force single column */
        gap: 40px; /* Space between stacked cards */
        padding: 0 10px; /* Prevent touching screen edges */
    }

    /* 2. Card Sizing */
    .course-card {
        min-width: 0; /* Reset any fixed width */
        width: 100%;  /* Fill the container */
        max-width: 450px; /* Optional: Prevent them getting too huge on tablets */
        margin: 0 auto; /* Center the cards */
    }

    /* 3. Adjust Header Text */
    .text-center h2 {
        font-size: 2.2rem !important;
        padding: 0 15px;
    }
    
    .text-center p {
        padding: 0 20px;
    }
}

/* =========================================
   INDUSTRIES SCROLLER RESPONSIVE FIX
   ========================================= */

@media (max-width: 900px) {

    /* 1. Hide the Arrow Buttons */
    /* Touch devices use swiping, so buttons just get in the way */
    .scroll-btn {
        display: none !important;
    }

    /* 2. Resize Cards for Mobile Screens */
    .industry-card-pro {
        min-width: 280px; /* Reduce from 360px so it fits on small phones */
        height: 400px;    /* Slightly shorter height */
    }

    /* 3. Adjust Scroller Padding */
    .industry-scroller-pro {
        gap: 20px; /* Reduce gap between cards */
        padding: 20px 15px; /* Ensure cards don't touch screen edges */
        
        /* Ensure snapping works if you want a premium feel */
        scroll-snap-type: x mandatory;
    }

    .industry-card-pro {
        scroll-snap-align: center; /* Cards snap to center when scrolling stops */
    }

    /* 4. Fix Section Title */
    .industries-section h2 {
        font-size: 2.2rem !important;
    }
}

/* =========================================
   NEWSLETTER RESPONSIVE FIX
   ========================================= */

@media (max-width: 900px) {

    /* 1. Stack Text and Form vertically */
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 30px; /* Space between text and input */
    }

    /* 2. Allow text to take full width */
    .newsletter-text {
        max-width: 100%;
        padding: 0 15px;
    }

    .newsletter-text h2 {
        font-size: 2rem; /* Slightly smaller heading */
    }

    /* 3. Center and Resize the Form Container */
    .newsletter-form-pro {
        width: 100%;
        max-width: 500px; /* Keep it from getting too wide on tablets */
    }

    /* 4. Adjust the Capsule for Mobile Touch */
    .input-capsule {
        width: 100%;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Softer shadow */
    }

    .input-capsule input {
        font-size: 1rem; /* Prevent zoom on iPhone inputs */
        padding-left: 20px;
    }

    .input-capsule button {
        padding: 12px 20px; /* Ensure button is easy to tap */
    }
}

/* 5. Extra Fix for Very Small Phones (iPhone SE etc) */
@media (max-width: 400px) {
    .input-capsule {
        flex-direction: column; /* Stack input and button inside the pill */
        padding: 10px;
        border-radius: 20px; /* Slightly less round when stacked */
    }

    .input-capsule input {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
        border-bottom: 1px solid #eee; /* Divider line */
        padding-bottom: 10px;
    }

    .input-capsule button {
        width: 100%;
        border-radius: 12px; /* Rectangular button inside */
    }
}

/* =========================================
   INDEX PAGE: SIDE-BY-SIDE MOBILE FIXES
   ========================================= */

@media (max-width: 900px) {

    /* --- 1. HERO BOTTOM ROW (3 Boxes Fixed in 1 Row) --- */
    .hero-bottom-row {
        display: flex !important;
        flex-direction: row !important; /* Force Horizontal */
        grid-template-columns: none !important;
        gap: 5px; /* Tight gap */
        padding: 0 5px;
        margin-top: 30px;
    }

    .glass-box {
        flex: 1; /* Equal width (33%) */
        min-width: 0; /* Allow shrinking */
        padding: 15px 5px; /* Compact padding */
        flex-direction: column; /* Stack Icon top, Text bottom */
        text-align: center;
        gap: 8px;
        height: auto;
    }

    /* Compact Content inside Glass Box */
    .box-icon {
        width: 35px; height: 35px; /* Smaller Icon */
        font-size: 0.9rem;
        margin: 0 auto; /* Center icon */
    }

    .box-info h3 {
        font-size: 0.65rem; /* Tiny Title */
        margin-bottom: 2px;
        line-height: 1.2;
    }

    .box-info p {
        display: none; /* Hide description text to fit 3 in a row */
    }

    .box-arrow {
        display: none; /* Hide arrow to save space */
    }

    /* --- 2. SERVICES SECTION (2x2 Grid) --- */
    /* Instead of 1 tall column, we do 2 columns side-by-side */
    .service-matrix {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* 2 Boxes Per Row */
        gap: 10px;
        padding: 0 5px;
    }

    .service-card-visual {
        display: flex;
        flex-direction: column;
        height: auto; /* Let height adjust */
    }

    .card-image {
        height: 100px; /* Shorter images */
    }

    .card-content {
        padding: 10px; /* Tight padding */
        text-align: center;
    }

    .card-content h3 {
        font-size: 0.85rem; /* Smaller Title */
        margin-bottom: 5px;
        margin-top: 0;
    }

    .card-content p {
        font-size: 0.6rem; /* Tiny Description */
        line-height: 1.3;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Limit text to 3 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .service-link {
        font-size: 0.65rem;
        justify-content: center;
    }

    .icon-small {
        width: 30px; height: 30px; /* Tiny floating icon */
        font-size: 0.8rem;
        top: -15px;
        right: 10px;
    }

    /* --- 3. COURSES SECTION (Horizontal Scroll) --- */
    /* Since course cards need more detail, we let them scroll sideways */
    .course-grid {
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto; /* Allow swiping */
        gap: 15px;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        margin-top: 20px;
    }

    .course-card {
        min-width: 260px; /* Fixed width for readability */
        max-width: 260px;
        flex: 0 0 auto;
        scroll-snap-align: center;
        margin: 0;
    }

    /* Hide scrollbar for cleaner look */
    .course-grid::-webkit-scrollbar {
        display: none;
    }
}