.card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.post-card {
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    background: #fff;
    transition: 0.3s;
}

.post-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.post-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.card-body {
    text-align: center;
    padding: 20px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.card-text {
    font-size: 1rem;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

.btn-primary:hover {
    background-color: #0056b3;
}


.contact-form {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    text-align: left;
}

.contact-form .card {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    padding: 20px;
}

.form-label {
    font-weight: bold;
    color: #555;
    text-align: left;
    display: block;
    /* Ensures labels take full width */
}

.form-control {
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 1rem;
}

textarea.form-control {
    resize: none;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
    width: auto;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.intro-section {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

@keyframes bounce-up {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce-down {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

.snake-container:nth-child(odd) {
    animation: bounce-up 2s infinite ease-in-out;
}

.snake-container:nth-child(even) {
    animation: bounce-down 2s infinite ease-in-out;
}


.snake-container {
    flex: 1;
    min-width: 48%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.snake-shape {
    width: 100%;
    padding: 30px 20px;
    color: white;
    border-radius: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.left-shape {
    background: linear-gradient(135deg, #0dcf54, #b48e79);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.right-shape {
    background: linear-gradient(135deg, #082d4c, #3e4462);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.snake-shape h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.snake-shape p {
    font-size: 1.2rem;
    max-width: 90%;
    line-height: 1.8;
}

.cta-button {
    margin-top: 20px;
    background: white;
    color: #ff6b6b;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.cta-button:hover {
    background: #ff8e53;
    color: white;
}

@media (max-width: 900px) {
    .intro-section {
        flex-direction: column;
    }

    .snake-container {
        min-width: 100%;
    }

    .snake-shape {
        padding: 40px 30px;
        clip-path: none;
        border-radius: 50px;
    }

    .snake-shape h2 {
        font-size: 2rem;
    }

    .snake-shape p {
        font-size: 1.1rem;
    }
}

/* Flip Card */
.flip-card {
    width: 340px !important;
    height: 200px;
    margin: 10px;
}

.flip-card-inner {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}

.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 10px;
    color: white;
}

.flip-card-front {
    background: linear-gradient(135deg, #3498db, #6ab0f3);
}

.flip-card-back {
    background: linear-gradient(135deg, #e74c3c, #f78b83);
    transform: rotateY(180deg);
}

/* Sliding Card */
.slide-card-container {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 320px !important;
    height: 200px;
    position: relative;
    margin: 20px;
}

.slide-card {
    display: flex;
    width: 640px;
    transition: transform 0.6s ease-in-out;
    position: absolute;
    /* Ensures it starts from the left */
    left: 0;
    /* Aligns the slides perfectly */
}

.slide {
    width: 320px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: white;
    border-radius: 10px;
    transform: translateX(0%);
}

.slide-1 {
    background: linear-gradient(135deg, #2ecc71, #6bf39b);
}

.slide-2 {
    background: linear-gradient(135deg, #f39c12, #f7b84c);
}

.homepage-features {
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.feature-icon i {
    font-size: 3rem;
    color: #007bff;
    transition: color 0.3s;
}

.feature-card:hover .feature-icon i {
    color: #0056b3;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
}

.feature-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.feature-card .btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.tips-section {
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.tips-section h2 {
    margin-bottom: 15px;
    color: #333;
}

.tip {
    padding: 12px 15px;
    margin: 10px 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
}

.tip .icon {
    font-size: 18px;
    line-height: 1.2;
}

/* Tip types */
.tip.warning {
    background-color: #fff4e5;
    border-left: 8px solid #ffb74d;
}

.tip.error {
    background-color: #ffe5e5;
    border-left: 8px solid #f44336;
}

.tip.quiz {
    background-color: #c0d0df;
    border-left: 8px solid #4caf50;
}

.tip.exercise {
    background-color: #c0d0df;
    border-left: 8px solid #2196f3;
}

.interactive-hero-section {
    padding: 80px 20px;
}

.interactive-hero {
    background: #e9e9e9;
    border-radius: 25px;
    max-width: 1000px;
    padding: 40px 30px;
    box-shadow: 0 30px 70px rgba(4, 12, 123, 0.516);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    transition: transform 0.3s, box-shadow 0.3s;
}

.interactive-hero:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(142, 181, 16, 0.377);
}

/* Left column: logo */
.interactive-hero-logo {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interactive-hero-logo img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(252, 2, 2, 0.511);
    transition: transform 0.3s;
}

.interactive-hero-logo img:hover {
    transform: scale(1.12);
}

/* Right column: text & buttons */
.interactive-hero-content {
    flex: 1;
    min-width: 250px;
}

.interactive-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0d3b66;
    margin-bottom: 20px;
}

.interactive-hero-text {
    font-size: 1.125rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Interactive hero buttons */
.interactive-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    position: relative;
}

.interactive-hero-buttons a {
    background: linear-gradient(135deg, #0d6efd, #6aa0ff);
    color: #fff;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    flex: 1 0 150px;
    text-align: center;
    position: relative;
}

/* Gradient variations */
.interactive-hero-buttons a.btn-success {
    background: linear-gradient(135deg, #198754, #5ac18e);
}

.interactive-hero-buttons a.btn-info {
    background: linear-gradient(135deg, #0dcaf0, #5ce0f2);
}

/* Hover effect */
.interactive-hero-buttons a:hover {
    transform: translateY(-15px) scale(1.15);
    box-shadow: 0 15px 35px rgba(206, 18, 96, 0.714);
}

/* Slight arc effect on desktop */
.interactive-hero-buttons a:nth-child(1) {
    transform: rotate(-10deg);
}

.interactive-hero-buttons a:nth-child(2) {
    transform: rotate(2deg);
}

.interactive-hero-buttons a:nth-child(3) {
    transform: rotate(12deg);
}

/* Responsive tweaks */
@media (max-width: 767px) {
    .interactive-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 95%;
    }

    .interactive-hero-logo {
        margin-bottom: 25px;
    }

    .interactive-hero-buttons {
        justify-content: center;
    }

    .interactive-hero-buttons a:nth-child(1),
    .interactive-hero-buttons a:nth-child(2),
    .interactive-hero-buttons a:nth-child(3) {
        transform: rotate(0deg);
        width: 80%;
        text-align: center;
    }
}