 /* 
* Asagao Dojo Website Styles
* Theme: Japanese martial arts with cherry blossom accents
*/

/* Global Styles */
:root {
    --primary: #8e1737;      /* Deep red */
    --primary-light: #c73e5d;
    --secondary: #1a1a2e;    /* Dark navy */
    --accent: #f1c6d3;       /* Soft pink */
    --light: #f8f0f2;
    --dark: #1a1a1a;
    --text: #333333;
    --shadow: rgba(0, 0, 0, 0.1);
    --primary-color: #9e0b28;
    --secondary-color: #e5bb7f;
    --light-color: #f9f9f9;
    --dark-color: #333;
    --text-color: #444;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Raleway', 'Noto Sans JP', 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
}

/* RTL Support for Arabic */
html[dir="rtl"] body {
    font-family: 'Tajawal', 'Raleway', 'Noto Sans JP', sans-serif;
    text-align: right;
}

html[dir="rtl"] h1, 
html[dir="rtl"] h2, 
html[dir="rtl"] h3, 
html[dir="rtl"] h4, 
html[dir="rtl"] h5, 
html[dir="rtl"] h6 {
    font-family: 'Tajawal', 'Noto Sans JP', 'Raleway', sans-serif;
}

html[dir="rtl"] .logo img {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="rtl"] nav ul li {
    margin-left: 0;
    margin-right: 20px;
}

html[dir="rtl"] .testimonial-content p::before {
    left: auto;
    right: -15px;
}

html[dir="rtl"] .credentials li i,
html[dir="rtl"] .plan-features li i,
html[dir="rtl"] .contact-info address p i {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="rtl"] .hero-buttons .btn:first-child {
    margin-right: 0;
    margin-left: 15px;
}

html[dir="rtl"] .section-title::after {
    margin: 15px auto 0;
}

/* Additional RTL styles for better Arabic support */
html[dir="rtl"] .about-content,
html[dir="rtl"] .contact-grid,
html[dir="rtl"] .footer-grid {
    flex-direction: row-reverse;
}

html[dir="rtl"] .about-image {
    margin-right: 0;
    margin-left: 40px;
}

html[dir="rtl"] .age-groups,
html[dir="rtl"] .affiliations-grid,
html[dir="rtl"] .pricing-plans,
html[dir="rtl"] .options-grid {
    flex-direction: row-reverse;
}

html[dir="rtl"] .social-links a {
    margin-right: 0;
    margin-left: 15px;
}

html[dir="rtl"] .form-group label {
    text-align: right;
}

html[dir="rtl"] .testimonial-author {
    text-align: left;
}

html[dir="rtl"] .contact-info {
    text-align: right;
}

/* Language Toggle Button */
.language-toggle {
    margin-right: 20px;
}

html[dir="rtl"] .language-toggle {
    margin-right: 0;
    margin-left: 20px;
}

.lang-toggle {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-toggle:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px var(--shadow);
}

.lang-toggle .ar-text,
.lang-toggle .en-text {
    display: inline-block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans JP', 'Raleway', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--secondary);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Japanese-inspired Elements */
.cherry-blossom-divider {
    height: 30px;
    background-image: url('../images/cherry-blossom-divider.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 20px auto 40px;
    opacity: 0.7;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin: 15px auto 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--secondary);
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/cherry-blossom-overlay.png');
    background-size: cover;
    opacity: 0.15;
    pointer-events: none;
}

.hero-content h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-content h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    margin-top: 30px;
}

.hero-buttons .btn {
    margin: 0 10px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 8px 20px var(--shadow);
}

.about-text h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
}

/* Classes Section */
.class-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.class-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.class-card:hover {
    transform: translateY(-5px);
}

.class-img {
    height: 200px;
    overflow: hidden;
}

.class-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.class-card:hover .class-img img {
    transform: scale(1.05);
}

.class-info {
    padding: 20px;
}

.class-info h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.sub-heading {
    text-align: center;
    margin: 40px 0 20px;
    color: var(--primary);
}

.age-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.age-group {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow);
}

.age-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.age-group h4 {
    margin-bottom: 15px;
}

.programs-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.program-package {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.program-package:hover {
    transform: translateY(-5px);
}

.program-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.program-package h4 {
    margin-bottom: 15px;
    color: var(--primary);
}

.schedule-section {
    margin-top: 50px;
    text-align: center;
}

.schedule {
    width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 5px 15px var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

.schedule th, .schedule td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.schedule th {
    background-color: var(--primary);
    color: white;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}

.schedule tr:last-child td {
    border-bottom: none;
}

.schedule-section .btn {
    margin-top: 30px;
}

/* Sensei Section */
.sensei-profile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.sensei-image img {
    border-radius: 8px;
    box-shadow: 0 8px 20px var(--shadow);
}

.sensei-bio h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.credentials {
    margin-bottom: 20px;
}

.credentials li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.credentials li i {
    color: var(--primary);
    margin-right: 10px;
}

/* Affiliations Section */
.affiliations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.affiliation-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.affiliation-card:hover {
    transform: translateY(-5px);
}

.affiliation-card img {
    height: 100px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.affiliation-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Testimonials Section */
.testimonial-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto 50px;
}

.testimonial {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow);
    margin-bottom: 30px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding: 0 20px;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 50px;
    color: var(--accent);
    position: absolute;
    opacity: 0.5;
}

.testimonial-content p::before {
    top: -20px;
    left: -10px;
}

.testimonial-content p::after {
    bottom: -40px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.testimonial-author h4 {
    margin-bottom: 5px;
}

.progress-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.progress-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow);
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.before, .after {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
}

.before {
    background-color: #f8f0f2;
}

.after {
    background-color: #e6f7e6;
}

.before h4, .after h4 {
    margin-bottom: 10px;
}

.after h4 {
    color: #2e8b57;
}

.student-name {
    text-align: center;
    font-weight: 500;
}

/* Pricing Section */
.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.pricing-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan-header {
    padding: 30px;
    background-color: var(--light);
    text-align: center;
    position: relative;
}

.ribbon {
    position: absolute;
    top: 20px;
    right: -30px;
    transform: rotate(45deg);
    background-color: var(--primary);
    color: white;
    padding: 5px 30px;
    font-size: 0.8rem;
    font-weight: 500;
}

.plan-header h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.price span {
    font-size: 1rem;
    font-weight: 400;
}

.savings {
    font-size: 0.9rem;
    color: #2e8b57;
    margin-top: 5px;
}

.plan-features {
    padding: 30px;
}

.plan-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.plan-features li i {
    color: #2e8b57;
    margin-right: 10px;
    margin-top: 5px;
}

.pricing-card .btn {
    margin: 0 30px 30px;
    width: calc(100% - 60px);
}

.additional-options {
    margin-top: 50px;
}

.additional-options h3 {
    text-align: center;
    margin-bottom: 30px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.option {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
}

.option-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0;
}

.pricing-note {
    text-align: center;
    margin-top: 30px;
}

.pricing-note p {
    margin-bottom: 20px;
    font-style: italic;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-info {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow);
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-info address {
    font-style: normal;
}

.contact-info address p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info address p i {
    color: var(--primary);
    margin-right: 10px;
    margin-top: 5px;
}

.whatsapp-contact {
    margin: 20px 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light);
    border-radius: 50%;
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    color: white;
}

.contact-form {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow);
}

.contact-form h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
}

.form-group textarea {
    resize: vertical;
}

.map {
    grid-column: 1 / -1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 15px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    margin-top: 10px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
}

.footer-links a:hover {
    color: white;
}

.footer .social-links a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer .social-links a:hover {
    background-color: var(--primary);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .about-content,
    .sensei-profile {
        grid-template-columns: 1fr;
    }
    
    .about-image,
    .sensei-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    nav ul {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px var(--shadow);
        padding: 20px 0;
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .schedule {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* New styles for the mini-hero section */
.mini-hero {
    padding: 120px 0 60px;
}

.mini-hero-content h1 {
    font-size: 3rem;
    font-family: 'Noto Sans JP', 'Tajawal', sans-serif;
    margin-bottom: 10px;
}

.mini-hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.mini-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mini-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.mini-hero-buttons .btn {
    margin: 0 10px;
}

/* Single Teacher Page Styles */
.single-teacher .teacher-card {
    max-width: 1200px;
    margin: 0 auto;
}

.single-teacher .teacher-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.single-teacher .teacher-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-right: 0;
}

.single-teacher .teacher-bio {
    flex: 1;
}

.single-teacher .teacher-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
}

.single-teacher .tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    position: relative;
    transition: color 0.3s;
}

.single-teacher .tab-btn:hover {
    color: #0D47A1;
}

.single-teacher .tab-btn.active {
    color: #0D47A1;
}

.single-teacher .tab-btn.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1rem;
    width: 100%;
    height: 3px;
    background-color: #0D47A1;
}

.single-teacher .teacher-tab-content {
    display: none;
    padding: 1.5rem 0;
}

.single-teacher .teacher-tab-content.active {
    display: block;
}

.single-teacher .teacher-tab-content h3 {
    text-align: center;
    margin-bottom: 2rem;
}

/* RTL Support for Single Teacher Page */
.rtl .single-teacher .teacher-header {
    flex-direction: row-reverse;
}

.rtl .single-teacher .teacher-photo {
    margin-right: 0;
    margin-left: 0;
}

@media (max-width: 768px) {
    .single-teacher .teacher-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .single-teacher .teacher-photo {
        margin: 0 auto 1.5rem;
    }
    
    .single-teacher .teacher-tabs {
        flex-wrap: wrap;
    }
    
    .rtl .single-teacher .teacher-header {
        flex-direction: column;
    }
}

.single-teacher .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.single-teacher .gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    aspect-ratio: 3/2;
}

.single-teacher .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.single-teacher .gallery-item:hover img {
    transform: scale(1.05);
}

.single-teacher .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 1rem;
}

.single-teacher .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.single-teacher .videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 2rem;
}

.single-teacher .video-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.single-teacher .video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.single-teacher .video-title {
    padding: 12px 15px;
    font-size: 16px;
    text-align: center;
    background-color: #f5f5f5;
    margin: 0;
}

/* RTL Support for Single Teacher Page */
.rtl .single-teacher .teacher-header {
    flex-direction: row-reverse;
}

.rtl .single-teacher .teacher-photo {
    margin-right: 0;
    margin-left: 0;
}

@media (max-width: 768px) {
    .single-teacher .teacher-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .single-teacher .teacher-photo {
        margin: 0 auto 1.5rem;
    }
    
    .single-teacher .teacher-tabs {
        flex-wrap: wrap;
    }
    
    .rtl .single-teacher .teacher-header {
        flex-direction: column;
    }
}