body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #f5f5f5;
    line-height: 1.6;
    background: linear-gradient(135deg, #e0e7ff, #dbeafe);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    color: #f5f5f5;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    margin-right: 15px;
}

.logo h1 {
    display: inline;
    margin-left: 15px;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #dbeafe;
    text-shadow: 0 0 10px rgba(219, 234, 254, 0.6);
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Sections with animated background */
.hero, .about, .reviews, .benefits, .why-choose-dream, .contact {
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
    transition: background-position 0.1s ease-out;
}

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #f5f5f5;
}

.about {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/flower.jpg') no-repeat center center;
}

.reviews {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/student.jpg') no-repeat center center;
}

.benefits {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/Japan2.png') no-repeat center center;
}

.why-choose-dream {
    padding: 80px 0;
    background: url('images/temple.jpg') no-repeat center center;
}

.contact {
    background: #1a252f;
    color: #f5f5f5;
}

.hero-content h2 {
    font-size: 4rem;
    margin-bottom: 25px;
    animation: slideUp 1.5s ease-in-out;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: bolder;
    animation: fadeIn 2s ease-in;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.btn {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    color: #ffffff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.5);
}

.btn:hover {
    background: linear-gradient(45deg, #60a5fa, #3b82f6);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.8);
}

.pulse {
    animation: pulse 2s infinite ease-in-out;
}

.services, .course-detail, .courses, .why-choose-us, .our-team, .universities {
    padding: 80px 0;
}

.services h2, .about h2, .contact h2, .course-detail h2, .courses h2, .reviews h2, .why-choose-us h2, .our-team h2, .universities h2 {
    text-align: center;
    color: #1e3a8a;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.services p, .about p, .contact p, .courses p, .reviews p, .why-choose-us p, .our-team p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #1e293b;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.services-grid, .courses-grid, .stats-grid, .team-grid {
    display: grid;
    gap: 30px;
}

.services-grid, .courses-grid, .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.team-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
}

.service-item, .course-box, .stat-item, .team-member {
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: #f5f5f5;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
}

.service-item:hover, .course-box:hover, .stat-item:hover, .team-member:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-item h3, .course-box h3, .stat-item h3, .team-member h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #1e3a8a;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.stat-item {
    background: linear-gradient(135deg, #C72438, #C72438);
    color: #ffffff;
}

.stat-item h3.counter {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stat-item p {
    font-size: 1.2rem;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    border: 4px solid #3b82f6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.team-member p.social {
    font-size: 1rem;
    margin-top: 10px;
}

.team-member p.social a {
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-member p.social a:hover {
    color: #1e3a8a;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.8);
}

.director-profile {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.director-profile:hover {
    transform: scale(1.02);
}

.director-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}

.director-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #3b82f6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.director-profile h3 {
    font-size: 1.8rem;
    color: #1e3a8a;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin: 0 0 20px 0;
}

.journey-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.journey-description {
    width: 100%;
}

.journey-description p {
    font-size: 1.1rem;
    color: #1e293b;
    margin: 0 0 15px 0;
    text-align: left;
    line-height: 1.8;
}

.director-profile p {
    font-size: 1.1rem;
    color: #1e293b;
    margin: 0;
    text-align: left;
    flex-grow: 1;
}

.contact h2 {
    color: #f5f5f5;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    justify-items: start;
}

.contact-info {
    padding: 0;
    background: none;
    box-shadow: none;
}

.contact-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #ffffff;
}

.contact-list p {
    margin: 0;
    color: #ffffff;
    text-shadow: none;
}

.contact-list a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: #dbeafe;
    text-shadow: 0 0 10px rgba(219, 234, 254, 0.6);
}

.services-sidebar {
    padding: 0;
    text-align: left;
    margin-left: auto;
}

.services-sidebar h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ffffff;
    text-transform: uppercase;
}

.contact-description {
    text-align: center;
    margin-bottom: 40px;
}

.contact-description p {
    font-size: 1.2rem;
    color: #f5f5f5;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.contact-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.contact-column {
    padding: 0;
}

.contact-map {
    text-align: center;
}

.contact-map iframe {
    width: 100%;
    max-width: 100%;
    height: 450px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.reviews h2 {
    text-align: center;
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.reviews p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 60px;
}

.carousel-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.review-item {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    color: #1e293b;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: scale(0.9);
    opacity: 0.8;
    transition: all 0.5s ease;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
}

.review-item.active {
    transform: scale(1);
    opacity: 1;
}

.review-item img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin-bottom: 25px;
    object-fit: cover;
    border: 5px solid #3b82f6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.review-item:hover img {
    transform: scale(1.1);
}

.review-item h3 {
    font-size: 1.9rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #1e3a8a;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.review-item p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    color: #1e293b;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: #f5f5f5;
    border: none;
    padding: 15px 20px;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    text-align: center;
    margin-top: 30px;
}

.dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.dot.active {
    background: #3b82f6;
    transform: scale(1.3);
}

footer {
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    color: #f5f5f5;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

.branches-btn {
    background: linear-gradient(45deg, #60a5fa, #93c5fd);
    color: #1e3a8a;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(96, 165, 250, 0.5);
}

.branches-btn:hover {
    background: linear-gradient(45deg, #93c5fd, #60a5fa);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.8);
}

.pulse {
    animation: pulse 2s infinite ease-in-out;
}

.university-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.university-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}

.university-btn {
    background: linear-gradient(135deg, #fff, #fff);
    color: #ffffff;
    padding: 15px 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: default;
}

.university-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.university-title {
    display: inline-block;
    background: linear-gradient(45deg, #052e33, #052e33);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.course-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.course-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.course-description p {
    font-size: 1.2rem;
    color: #1e293b;
    line-height: 1.8;
}

.benefits h2 {
    text-align: center;
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.benefits p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.benefits-content {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    text-align: left;
}

.benefits-content:hover {
    transform: scale(1.02);
}

.benefits-content p {
    font-size: 1.1rem;
    color: #1e293b;
    margin: 0 0 15px 0;
    line-height: 1.8;
    text-align: left;
}

.why-choose-dream h2 {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.why-choose-dream p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.why-choose-dream-content {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    text-align: left;
}

.why-choose-dream-content:hover {
    transform: scale(1.02);
}

.why-choose-dream-content p {
    font-size: 1.1rem;
    color: #1e293b;
    margin: 0 0 15px 0;
    line-height: 1.8;
    text-align: left;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(96, 165, 250, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(96, 165, 250, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(96, 165, 250, 0.5);
    }
}

/* Our Gallery Section */
.our-gallery {
    padding: 80px 0;
    background: linear-gradient(135deg, #f1f5f9, #e0e7ff);
}

.our-gallery h2 {
    text-align: center;
    color: #1e3a8a;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.our-gallery p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #1e293b;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: #f5f5f5;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #9FD9FE, #CB6C77);
    overflow: hidden;
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}
.review-text, .director-text {

}

.gallery-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: none;
    transition: transform 0.3s ease;
}
.see-more-btn{
    display: none;
}

.gallery-item:hover video {
    transform: scale(1.1);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        order: 1; /* Moves hamburger to the left */
    }

    .header-title {
        display: none; /* Hide "Dream Japanese Language School" on mobile */
    }

    header .container {
        flex-direction: row-reverse; /* Reverses order: logo to right, hamburger to left */
        justify-content: space-between;
        padding: 0 10px;
    }

    .logo {
        margin-right: 0; /* Align logo to the far right */
    }

    .hamburger {
        margin-left: 0; /* Align hamburger to the far left */
    }

    nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #003135;
        padding: 20px 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 15px 0;
    }

    nav ul li a {
        font-size: 1.2rem;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .services-grid, .courses-grid, .stats-grid, .team-grid, .contact-grid, .course-detail-grid, .contact-details-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .carousel {
        padding: 0 40px;
    }

    .carousel-btn {
        padding: 10px 15px;
        font-size: 1.5rem;
    }
    
    .review-item {
        padding: 20px;
        height: auto; /* Allow natural height */
        min-height: 300px; /* Ensure space for truncated content + button */
    }

    .review-item img {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }

    .review-item h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    /* Review text truncation and expansion */
    .review-text {
        max-height: 150px; /* Initial truncated height */
        overflow: hidden; /* Truncate long text */
        transition: max-height 0.5s ease; /* Smooth expansion */
        font-size: 1rem; /* Smaller text */
        line-height: 1.6;
    }

    .review-text.expanded {
        max-height: none; /* Allow full height when expanded */
    }

    /* Services sidebar adjustment in contact section */
    .contact-grid {
        display: flex;
        flex-direction: column-reverse; /* Reverse order: services-sidebar first, then contact-info */
        align-items: flex-start; /* Align items to the left */
        gap: 40px; /* Adjust gap for spacing */
    }

    .services-sidebar {
        margin-left: 0; /* Remove auto margin to align left */
        text-align: left; /* Ensure text aligns left */
        width: 100%; /* Full width for consistency */
    }

    .contact-info {
        width: 100%; /* Full width for consistency */
    }

    /* Journey description truncation and expansion in About Us */
    .journey-description {
        max-height: 150px; /* Initial truncated height */
        overflow: hidden; /* Truncate long text */
        transition: max-height 0.5s ease; /* Smooth expansion */
    }

    .journey-description.expanded {
        max-height: none; /* Allow full height when expanded */
    }

    /* See More button styling for both review and journey */
    .see-more-btn {
        display: block; /* Ensure it’s visible by default */
        background: linear-gradient(45deg, #3b82f6, #60a5fa);
        color: #ffffff;
        border: none;
        padding: 10px 20px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 25px;
        cursor: pointer;
        margin-top: 10px;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(59, 130, 246, 0.5);
    }

    .see-more-btn:hover {
        background: linear-gradient(45deg, #60a5fa, #3b82f6);
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(96, 165, 250, 0.8);
    }

    .university-btn {
        font-size: 1rem;
        padding: 12px 15px;
    }

    .university-title {
        font-size: 1.5rem;
        padding: 10px 20px;
    }

    footer .container {
        flex-direction: column;
        gap: 15px;
    }

    .benefits-content {
        padding: 20px;
    }

    .benefits h2 {
        font-size: 2rem;
    }

    .benefits p {
        font-size: 1rem;
    }

    .why-choose-dream-content {
        padding: 20px;
    }

    .why-choose-dream h2 {
        font-size: 2rem;
    }

    .why-choose-dream p {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .gallery-item img,
    .gallery-item video {
        height: 150px;
    }
}

@media (max-width: 480px) {

            /* Truncate text by default */
        .review-text, .director-text {
            max-height: 100px; /* Initial truncated height */
            overflow: hidden;
            transition: max-height 0.5s ease; /* Smooth expansion */
        }

        /* Expanded state */
        .review-text.expanded, .director-text.expanded {
            max-height: none; /* Allow full height when expanded */
        }

        /* See More button styling */
        .see-more-btn {
            background: linear-gradient(45deg, #3b82f6, #60a5fa);
            color: #ffffff;
            display: block;
            border: none;
            padding: 10px 20px;
            font-size: 1rem;
            font-weight: 600;
            border-radius: 25px;
            cursor: pointer;
            margin-top: 10px;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(59, 130, 246, 0.5);
        }

        .see-more-btn:hover {
            background: linear-gradient(45deg, #60a5fa, #3b82f6);
            transform: scale(1.05);
            box-shadow: 0 8px 20px rgba(96, 165, 250, 0.8);
        }




    .hero-content h2 {
        font-size: 2rem;
    }
    .header-title{
        font-size:1%;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .service-item h3, .course-box h3, .stat-item h3, .team-member h3 {
        font-size: 1.5rem;
    }

    .director-img, .review-item img {
        width: 80px; /* Even smaller image for very small screens */
        height: 80px;
    }

    .review-item h3 {
        font-size: 1.3rem;
    }


    .university-btn {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .university-title {
        font-size: 1.2rem;
        padding: 8px 15px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img,
    .gallery-item video {
        height: 120px;
    }
}