body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
    min-height: 100vh;
    /* Ensures full viewport height */
    /* font-family: 'Open Sans', sans-serif; */
    font-family: 'Roboto', sans-serif;
    /* just for testing, font- family is not finialised yet */
    padding-top: 20px;
    background: #1c1c1e;
    color: #1c1c1e;

}


.blog-header {
    background: #1c1c1e;
    padding: 5px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header-glow h1 {
    font-size: 2.5rem;
    color: #00e5ff;
    text-shadow: 2px 2px 6px rgba(0, 229, 255, 0.5);
    margin-bottom: 10px;
}

.header-tagline {
    color: #fefefe;
    font-size: 1.2rem;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .header-glow h1 {
        font-size: 2rem;
    }
}

/* Top Banner Section [START]*/

.top-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(80vh - 20px);
    background: #000000;
    background-image: url('https://firebasestorage.googleapis.com/v0/b/aiforallindia-ad9cb.appspot.com/o/manali%2FSchool_and_ai_banner_background.png?alt=media&token=512b1639-9c3b-4d5c-80fe-4dfd3a7c0136');
    color: white;
    flex-direction: column;
    text-align: center;
    /* Ensure text alignment is centered for all child text */
}

.banner-image {
    flex: 0 0 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-image img {
    width: 80%;
    height: auto;
}

.banner-content {
    flex: 1;
    width: 100%;
    /* Ensures that the container takes full width */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center alignment for content */
}

.top-banner h1 {
    font-size: 36px;
    /* Adjusted font size for mobile */
    margin: 10px 0;
    /* Spacing for mobile */
    width: 100%;
    /* Ensure full width for better control */
    text-align: center;
    /* Center text alignment */
    letter-spacing: 0.3px;
    color: #5271ff;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;

}

.top-banner h2 {
    /* font-size: 16px; */
    /* Adjusted font size for mobile */
    margin: 10px 10px;
    /* Spacing for mobile */
    text-align: center;
    /* Center text alignment */
    letter-spacing: 0.3px;
    line-height: 1.8;
    font-family: Arial, Helvetica, sans-serif;
}

@media (min-width: 768px) {
    .top-banner {
        flex-direction: row;
        justify-content: space-between;
        /* Adjusts content spacing for desktop */
    }

    .banner-image {
        flex: 0 0 40%;
    }

    .banner-image img {
        width: 100%;
    }

    .banner-content {
        flex: 1;
        padding-left: 20px;
        /* Padding for desktop */
    }

    .top-banner h1 {
        text-align: center;
        font-size: 48px;
        /* Larger font size for desktop */
        margin-bottom: 20px;
        /* Spacing for desktop */
    }

    .top-banner h2 {
        text-align: center;
        font-size: 36px;
        /* Larger font size for desktop */
        margin-bottom: 20px;
        /* Spacing for desktop */
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .top-banner {
        flex-direction: column;
        text-align: center;
    }

    .banner-image img {
        width: 80%;
    }

    .banner-content {
        padding-left: 0;
        padding-top: 20px;
    }

    .top-banner h1 {
        font-size: 36px;
    }

    .top-banner h2 {
        font-size: 22px;
    }
}

.hero-title {
    font-size: 2.5rem;
    color: #00e5ff;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    text-align: center;
}

.hero-title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, #00e5ff, #5271ff);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.hero-title:hover::after {
    width: 80%;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    margin-top: 10px;
    color: #ffffff;
    opacity: 0.95;
}

.mini-tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: #dddddd;
    margin-top: 5px;
    line-height: 1.6;
}



/* Top Banner Section [END]*/

/* Mentor message Section [START] */

.mentor-message-section {
    display: flex;
    background-color: white;
    padding-top: 70px;
    padding-left: 60px;
    padding-right: 20px;
    padding-bottom: 70px;
    align-items: center;
    /* Ensures vertical centering of items within the section */
}

.mentor-message-text {
    flex: 1 0 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Adjusts vertical alignment to center for better balance */
    padding-right: 20px;
}

.mentor-message-text h1 {
    font-size: 28px;
    /* Adjusted font size */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.7;
    white-space: pre-wrap;
    /* Ensures respect for manual line breaks */
}

.mentor-message-text p {
    line-height: 1.8;
    text-align: justify;
    /* Justifies the paragraph for better readability */
}

.mentor-message-logo {
    flex: 1 0 40%;
    /* Adjusted to make the logo a bit smaller */
    display: flex;
    justify-content: center;
    align-items: center;
}

.mentor-message-logo img {
    border-radius: 50%;
    max-width: 70%;
    /* Adjusted size per your request */
    height: auto;
    display: block;
    margin: 0 auto;
}

.mentor-signature {
    margin-top: 20px;
    font-style: italic;
    text-align: right;
    color: #444;
    font-weight: bold;
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.mentor-quote {
    font-size: 1rem;
    /* Smaller font size */
    line-height: 1.8;
    color: #222;
    background: #f8f8f8;
    padding: 18px;
    border-left: 4px solid green;
    border-radius: 6px;
    font-weight: normal;
    text-align: justify;
}

@media (max-width: 768px) {
    .mentor-message-section {
        flex-direction: column;
        padding-left: 20px;
        padding-right: 20px;
    }

    .mentor-message-text {
        order: 2;
        padding-right: 0;
    }

    .mentor-message-logo {
        order: 1;
        margin-bottom: 20px;
    }

    .mentor-message-text h1 {
        font-size: 24px;
        /* Smaller font size for mobile devices */
    }
}



/* Mentor message Section [END] */

/* trend shift section [START] */

.trend-shift {
    text-align: center;
    /* Center text horizontally */
    margin-top: 0;
    /* Bottom margin */
    background-color: #f3f3f3;
    padding-bottom: 0;
}

.trend-shift img {
    width: 80%;
    /* Maintain aspect ratio */
    height: auto;
    /* 60% of the viewport height */
    max-width: 100%;
    /* Ensure the image doesn't exceed the container width */
    opacity: 0;
    /* Initially hidden */
    transform: scale(0.8);
    /* Slightly smaller */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* When visible, animate */
.trend-shift.show img {
    opacity: 1;
    transform: scale(1);
    /* Grows to normal size */
}

@media (max-width: 768px) {
    .trend-shift img {
        width: 100%;
        /* Full width for mobile */
    }
}

/* trend shift section [END] */



/* language-AI section [START] */
/* AI Section Layout */
.language-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 70%;
    min-height: 60vh;
    background: #ff914d;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    /* Initially hidden */
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    will-change: transform, opacity;
    /* Helps smooth rendering */
}

/* When visible, make it appear */
.language-section.show {
    opacity: 1;
    max-width: 100%;
    box-sizing: border-box;
    transform: translateX(0);

}

.left-align {
    margin: 10px auto 10px 0;
    transform: translateX(-100px);
    /* Start off-screen to the left */

}

.right-align {
    margin: 10px 0 10px auto;
    transform: translateX(100px);
    /* Start off-screen to the right */

}


/* Left Part */
.left-content {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.left-content h1 {
    font-size: 4vw;
    /* Dynamic font size based on screen width */
    font-weight: bold;
    color: #000;
    margin-bottom: 20px;
}

.sub-text {
    font-size: 1.2rem;
    /* Slightly reduced for tablets */
    font-weight: bold;
    color: #000;
    margin-top: 5px;
}

/* Learn Button */
.learn-btn {
    margin-top: 20px;
    padding: 1rem 2rem;
    /* Responsive padding */
    font-size: 1.2rem;
    /* Uses rem instead of px for better scalability */
    font-weight: bold;
    color: white;
    background-color: #1c1c1e;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

/* Hover & Click Effects */
.learn-btn:hover {
    background-color: #cc5200;
    transform: scale(1.1);
    /* Slight zoom effect */
}

.learn-btn:active {
    transform: scale(0.95);
}

/* Right Part */
.right-content {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

/* Image Container */
.image-container {
    text-align: center;
    background: #d9d9d9;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 70%;
    width: 60%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Image */
.image-container img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* 📱 **Tablet View (768px - 1024px)** */
@media (max-width: 1024px) {
    .language-section {
        width: 85%;
        height: 50vh;
        /* Expands section to fit more space on tablets */
        flex-direction: row;
        /* Keeps it side by side */
        padding: 20px;
    }

    .left-content {
        width: 50%;
        /* Gives more space to the text */
    }

    .left-content h1 {
        font-size: 3vw;
        /* Adjust font dynamically */
    }

    .sub-text {
        font-size: 1rem;
        /* Keeps readability */
    }

    .learn-btn {
        font-size: 1rem;
        /* Adjusts for better proportion */
        padding: 0.8rem 1.5rem;
    }

    .right-content {
        width: 50%;
        align-items: center;
        /* Center align for better spacing */
    }

    .image-container {
        max-width: 80%;
    }
}


/* 📱 Mobile Responsive Fix */
@media (max-width: 768px) {
    .language-section {
        flex-direction: column;
        /* Stack elements vertically */
        width: 90%;
        /* Full width for better spacing */
        height: auto;
        /* Adjust height dynamically */
        padding: 30px;
        /* More padding for spacing */
        align-items: center;
    }

    .left-content {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .left-content h1 {
        font-size: 2rem;
        /* Smaller text for mobile */
    }

    .sub-text {
        font-size: 1rem;
    }

    .learn-btn {
        width: auto;
        padding: 10px 20px;
        margin-bottom: 20px;
        font-size: 1rem;
    }

    .right-content {
        width: 100%;
        align-items: center;
        padding-right: 0;
    }

    .image-container {
        max-width: 70%;
        width: 70%;
    }


}


/* Section for remaining Language Cards [START] */
.remaining-languages-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Exactly 2 per row */
    gap: 20px;
    justify-content: center;
    padding: 40px;
    max-width: 90%;
    margin: auto;
}

/* Individual Card */
.language-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    /* Light color, change per language */
    color: white;
    /* Dark text for contrast */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

/* Alternate Background Colors */
.language-card:nth-child(2n) {
    background: linear-gradient(135deg, #ff758c, #ff7eb3);
    /* Pink-Orange gradient */
    /* Light yellow for alternate cards */
}

/* Hover Effect */
.language-card:hover {
    transform: translateY(-5px);
}

/* Button Styling */
.remaining-learn-btn {
    margin-top: 15px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #333;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.remaining-learn-btn:hover {
    background-color: #555;
}

/* Mobile Responsiveness: Show only 1 per row */
@media (max-width: 768px) {
    .remaining-languages-section {
        grid-template-columns: repeat(1, 1fr);
        /* Show only 1 card per row on small screens */
    }
}

/* Section for remaining Language Cards [END] */

/* Subscribe Section [START] */
.subscribe-section {
    background: #f9f9f9;
    /* Light background for contrast */
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Subscribe Card */
.subscribe-card {
    background: white;
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 90%;
    height: auto;
}

/* Heading */
.subscribe-card h2 {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

/* Description */
.subscribe-card p {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Form Layout */
.subscribe-card form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Input Field */
.subscribe-card input[type="email"] {
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 30px;
    width: 280px;
    outline: none;
    transition: border-color 0.3s ease-in-out;
}

/* Input Glow Effect on Focus */
.subscribe-card input[type="email"]:focus {
    border-color: #764ba2;
    /* Subtle focus color */
}

/* Subscribe Button */
.subscribe-card button {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #ff758c, #ff7eb3);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Button Hover Effect */
.subscribe-card button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(255, 121, 163, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .subscribe-card {
        width: 95%;
        padding: 40px 20px;
    }

    .subscribe-card form {
        flex-direction: column;
        gap: 10px;
    }

    .subscribe-card input[type="email"],
    .subscribe-card button {
        width: 100%;
    }
}

/* Subscribe Section [END] */
/* Profile Section - Centering */
.profile-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: #f9f9f9;
    /* Light background for contrast */
}

/* Profile Card (For Neat Look) */
.profile-card {
    position: relative;
    max-width: 800px;
    /* Keeps the card from getting too large */
    width: 90%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease-in-out;
}

/* Image Styling */
.profile-card img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease-in-out;
}

/* Hover Effect - Slight Zoom */
@media (hover: hover) {
    .profile-card:hover img {
        transform: scale(1.05);
    }
}

/* Profile Overlay - Always Visible */
.profile-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Semi-transparent dark overlay */
    color: white;
    text-align: center;
    padding: 20px;
    opacity: 1;
    /* Always visible */
    transition: all 0.4s ease-in-out;
}

/* Overlay Text */
.profile-overlay h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.profile-overlay p {
    font-size: 18px;
    opacity: 0.9;
}

/* Show Overlay on Hover (Desktop) */
@media (hover: hover) {
    .profile-card:hover .profile-overlay {
        background: rgba(0, 0, 0, 0.8);
        /* Darkens slightly */
        transform: scale(1.02);
    }
}

/* Show Overlay on Tap (Mobile) */
.profile-card.active .profile-overlay {
    background: rgba(0, 0, 0, 0.8);
    /* Darkens slightly */
    transform: scale(1.02);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-card {
        max-width: 95%;
        touch-action: manipulation;
    }

    .profile-overlay h2 {
        font-size: 24px;
    }

    .profile-overlay p {
        font-size: 16px;
    }
}

.playground-hero {
    background: #1c1c1e;
    color: white;
    padding: 50px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 5px;

    /* Dashed Borders */
    border-style: dashed;
    border-width: 5px;
    border-color: #667eea red green #ffd700;
    /* Top Right Bottom Left */

    /* 🔥 Blinking animation */
    animation: blinkBorders 2.5s linear infinite;
    border-radius: 20px;
}

@keyframes blinkBorders {
    0% {
        border-color: #667eea red green #ffd700;
    }

    25% {
        border-color: #ffcc00 #ff4081 cyan lime;
    }

    50% {
        border-color: #00ffff orange #ffcc00 purple;
    }

    75% {
        border-color: lime #ff4081 red #00e5ff;
    }

    100% {
        border-color: #667eea red green #ffd700;
    }
}

.playground-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    margin-top: 20px;
    background: linear-gradient(to right, #f9d423, #ff4e50);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.2);
}

.playground-content h2:hover {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    transform: scale(1.01);
}

.playground-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 25px;
    color: #f5f5f5;
}

.gold-name {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 1px 1px 5px rgba(255, 215, 0, 0.5);
}

.playground-btn {
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 75, 43, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.playground-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 75, 43, 0.6);
}

.playground-image {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
}

/* Optional: tighter spacing on mobile */
@media (max-width: 768px) {
    .playground-content h2 {
        font-size: 1.7rem;
    }

    .playground-content p {
        font-size: 1rem;
    }

    .playground-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        animation: pulse 2.5s infinite;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 75, 43, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 75, 43, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 75, 43, 0);
    }
}


.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    left: -9999px;
}

/* immediate fix for horizontal scroll stoppage */

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}