/* Base Styles */
:root {
    --primary-color: #1e5f74;
    --secondary-color: #f4a51c;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

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

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

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

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

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

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

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

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--dark-color);
}

p {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    position: relative;
    width: 40px;
    height: 40px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .english {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text .urdu {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

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

.nav-link:hover:after {
    width: 100%;
}

.language-toggle {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: var(--secondary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    padding: 20px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    text-align: right;
    margin-bottom: 30px;
}

.mobile-menu-close i {
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    color: var(--dark-color);
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Ensure images don't exceed their container */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
}

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

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.btn-login {
    background: var(--primary-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
    margin-left: 20px;
}

.btn-login:hover {
    background: #15435f;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(30, 95, 116, 0.9), rgba(16, 44, 70, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 40px;
    height: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slide {
    display: none;
    width: 100%;
}

.hero-slide.active {
    display: block;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.quran-illustration {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.quran-illustration i {
    font-size: 4rem;
    color: var(--secondary-color);
}

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

/* About Section (Why Choose Us) */
.about {
    text-align: center;
    background-color: #f9f9f9;
}

.about h2 {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.about h2:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 25%;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.about-item {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-item .icon-wrapper {
    margin-bottom: 20px;
}

.about-item .icon-wrapper i {
    font-size: 3rem;
    color: var(--primary-color);
}

/* Services Section */
.services {
    text-align: center;
}

.services h2 {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.services h2:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 25%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card .service-icon {
    margin-bottom: 20px;
}

.service-card .service-icon i {
    font-size: 3rem;
    color: var(--primary-color);
}

.service-features {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Features Section */
.features {
    text-align: center;
    background-color: #f9f9f9;
}

.features h2 {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.features h2:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 25%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Courses Section */
.courses {
    text-align: center;
}

.courses h2 {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.courses h2:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 25%;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.course-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-card h3 {
    margin: 20px 0 10px;
}

.course-card p {
    padding: 0 20px;
    margin-bottom: 20px;
}

.course-card .btn {
    margin-bottom: 25px;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, rgba(30, 95, 116, 0.9), rgba(16, 44, 70, 0.9)), url('../images/testimonial-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.testimonials h2 {
    color: white;
    margin-bottom: 50px;
}

.testimonial {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.testimonial p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    color: white;
}

.testimonial h4 {
    color: var(--secondary-color);
}

/* CTA Section */
.cta {
    text-align: center;
    background-color: #f9f9f9;
}

.cta h2 {
    margin-bottom: 20px;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 40px;
}

.trial-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.trial-form input,
.trial-form select,
.trial-form button {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.trial-form button {
    grid-column: 1 / -1;
    cursor: pointer;
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.trial-form button:hover {
    background: #15435f;
}

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

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

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background: var(--secondary-color);
    bottom: -8px;
    left: 0;
}

.footer-section p,
.footer-section a {
    color: #bbb;
    margin-bottom: 10px;
    display: block;
}

.footer-section a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-section i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .features-grid,
    .courses-grid,
    .about-content,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 25px;
    }
    
    .trial-form {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .features-grid,
    .courses-grid,
    .about-content,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .feature-card,
    .course-card,
    .about-item,
    .service-card {
        padding: 30px 20px;
    }
    
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        max-height: 50px;
    }

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

    .quran-illustration {
        width: 150px;
        height: 150px;
    }

    .quran-illustration i {
        font-size: 3rem;
    }
    
    .features-grid,
    .courses-grid,
    .about-content,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card,
    .course-card,
    .about-item,
    .service-card {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .feature-card i,
    .about-item .icon-wrapper i,
    .service-card .service-icon i {
        font-size: 2.5rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .mobile-menu {
        width: 280px;
        padding: 15px;
    }
    
    .mobile-nav-links a {
        font-size: 1.1rem;
        padding: 15px 0;
    }
}

/* Language Toggle Functionality */
.english, .urdu {
    display: block;
}

body.urdu-active .english {
    display: none;
}

body.urdu-active .urdu {
    display: block;
}

body:not(.urdu-active) .urdu {
    display: none;
}

body:not(.urdu-active) .english {
    display: block;
}

/* Responsive Form Styles */
@media (max-width: 768px) {
    .trial-form,
    form {
        padding: 20px 15px;
    }
    
    .trial-form input,
    .trial-form select,
    .trial-form textarea,
    form input,
    form select,
    form textarea {
        width: 100%;
        margin-bottom: 15px;
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .trial-form button,
    form button {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .trial-form,
    form {
        padding: 15px 10px;
    }
    
    .trial-form input,
    .trial-form select,
    .trial-form textarea,
    form input,
    form select,
    form textarea {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .trial-form button,
    form button {
        padding: 10px;
        font-size: 0.85rem;
    }
}

/* Responsive Table Styles */
@media (max-width: 768px) {
    table {
        font-size: 0.8rem;
    }
    
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 10px;
    }
    
    td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: left;
    }
    
    td:before {
        content: attr(data-label);
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
}

/* Responsive Image and Media */
@media (max-width: 768px) {
    img,
    video,
    iframe {
        max-width: 100%;
        height: auto;
    }
    
    .course-card img {
        height: 150px;
        object-fit: cover;
    }
}

@media (max-width: 576px) {
    .course-card img {
        height: 120px;
    }
}

/* Page-specific Responsive Styles */

/* About Page Responsive */
@media (max-width: 768px) {
    .about-header {
        padding: 60px 0 40px;
    }
    
    .about-header h1 {
        font-size: 2.2rem;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mission-card, .vision-card {
        padding: 20px;
    }
    
    .our-team .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .about-header h1 {
        font-size: 1.8rem;
    }
    
    .mission-card, .vision-card {
        padding: 15px;
    }
    
    .our-team .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Page Responsive */
@media (max-width: 768px) {
    .contact-header {
        padding: 60px 0 40px;
    }
    
    .contact-header h1 {
        font-size: 2.2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info, .contact-form {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .contact-header h1 {
        font-size: 1.8rem;
    }
    
    .contact-info, .contact-form {
        padding: 15px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links a {
        margin: 0 5px;
        padding: 8px;
    }
}

/* Courses Page Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
}

/* Login Page Responsive */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }
    
    .auth-illustration {
        display: none;
    }
    
    .auth-content {
        padding: 20px;
    }
    
    .auth-box {
        max-width: 400px;
        margin: 0 auto;
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .auth-box {
        padding: 20px 15px;
    }
    
    .auth-header h1 {
        font-size: 1.8rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* Global Link and Button Responsive Improvements */
@media (max-width: 768px) {
    /* Make all links more touch-friendly */
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 8px 12px;
    }
    
    /* Button improvements */
    .btn, button {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Navigation improvements */
    .nav-links a {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    /* Card link improvements */
    .lesson-card, .study-card, .course-card {
        cursor: pointer;
        transition: transform 0.2s ease;
    }
    
    .lesson-card:hover, .study-card:hover, .course-card:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 576px) {
    /* Smaller screens - even more touch-friendly */
    a {
        padding: 10px 15px;
    }
    
    .btn, button {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    /* Navigation for small screens */
    .nav-links a {
        padding: 15px 20px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* Responsive Navigation Improvements */
@media (max-width: 768px) {
    .language-toggle {
        gap: 3px;
    }
    
    .lang-btn {
        padding: 3px 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .language-toggle {
        display: none;
    }
    
    .mobile-menu .language-toggle {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
}

/* Logo Icon Styles */
.crescent-star {
    position: absolute;
    top: 5px;
    left: 5px;
}

.crescent {
    width: 15px;
    height: 15px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    border-right-color: transparent;
    transform: rotate(-45deg);
}

.star {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid var(--secondary-color);
}

.quran-book {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 15px;
}

.book-spine {
    width: 3px;
    height: 15px;
    background: var(--primary-color);
    position: absolute;
    left: 0;
}

.book-pages {
    width: 17px;
    height: 13px;
    background: white;
    border: 1px solid var(--primary-color);
    position: absolute;
    right: 0;
    top: 1px;
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        max-height: 40px;
        margin-bottom: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .nav-container {
        padding: 0 10px;
    }

    .logo-text .english {
        font-size: 0.9rem;
    }

    .logo-text .urdu {
        font-size: 0.75rem;
    }
    
    .navbar {
        padding: 8px 0;
    }
    
    .feature-card,
    .course-card,
    .about-item,
    .service-card {
        padding: 20px 15px;
        margin: 0 5px;
    }
    
    .feature-card i,
    .about-item .icon-wrapper i,
    .service-card .service-icon i {
        font-size: 2rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .quran-illustration {
        width: 120px;
        height: 120px;
    }
    
    .quran-illustration i {
        font-size: 2.5rem;
    }
    
    .mobile-menu {
        width: 100%;
        padding: 10px;
    }
    
    .mobile-nav-links a {
        font-size: 1rem;
        padding: 12px 0;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
        max-height: 35px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .feature-card,
    .course-card {
        padding: 15px 10px;
    }
    
    .feature-card i {
        font-size: 1.8rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 0.85rem;
    }
    
    section {
        padding: 30px 0;
    }
    
    .logo-text .english {
        font-size: 0.8rem;
    }
    
    .logo-text .urdu {
        font-size: 0.7rem;
    }
    
    .quran-illustration {
        width: 100px;
        height: 100px;
    }
    
    .quran-illustration i {
        font-size: 2rem;
    }
}
