﻿/* Base Styles */
html {
    font-size: 12px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 14px;
    }
}

body {
    margin-bottom: 0;
    direction: rtl;
    text-align: right;
}

/* Color Variables */
:root {
    --gold-color: #32DBC2;
    --gold-light: rgba(212, 175, 55, 0.1);
    --green-color: #2E8B57;
    --green-light: rgba(46, 139, 87, 0.1);
    --navy-color: #003366;
    --navy-light: rgba(0, 51, 102, 0.1);
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
}

/* Text Colors */
.text-gold {
    color: var(--gold-color);
}

.text-green {
    color: var(--green-color);
}

.text-navy {
    color: var(--navy-color);
}

.text-goldG {
    color: #c19a3c;
}

/* Background Colors */
.bg-gold {
    background-color: #c19a3c;
}

.bg-green {
    background-color: #0a3a3a;
}

.bg-navy {
    background-color: #1a2a3a;
}

.bg-light {
    background-color: #f8f5ee;
}

/* Buttons - Fixed Bootstrap Compatibility */
.btn {
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.15s ease-in-out;
}

.btn-gold {
    background-color: var(--gold-color);
    color: white;
    border-color: var(--gold-color);
}

    .btn-gold:hover {
        background-color: #2a9c8a;
        border-color: #2a9c8a;
        color: white;
    }

.btn-green {
    background-color: var(--green-color);
    color: white;
    border-color: var(--green-color);
}

    .btn-green:hover {
        background-color: #247a4d;
        border-color: #247a4d;
        color: white;
    }

.btn-navy {
    background-color: var(--navy-color);
    color: white;
    border-color: var(--navy-color);
}

    .btn-navy:hover {
        background-color: #002b4d;
        border-color: #002b4d;
        color: white;
    }

/* Sidebar Styles */
#sidebar {
    min-height: calc(100vh - 56px);
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.sidebar-header img {
    object-fit: cover;
}

.nav-link {
    padding: 12px 15px;
    border-radius: 6px;
    color: #555;
    transition: all 0.2s;
    margin: 2px 5px;
}

    .nav-link:hover {
        background-color: rgba(50, 219, 194, 0.1);
        color: var(--gold-color);
    }

    .nav-link.active {
        color: #2a7f76;
        font-weight: 500;
    }

    .nav-link i {
        width: 20px;
        text-align: center;
    }

@media (max-width: 767.98px) {
    #sidebar {
        position: fixed;
        top: 56px;
        left: -250px;
        width: 250px;
        z-index: 1000;
        height: calc(100vh - 56px);
    }

        #sidebar.expand {
            left: 0;
        }
}

/* Profile Styles */
.profile-picture {
    height: 230px;
    object-fit: cover;
    border: 1px solid #007bff;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profilePicture {
    height: 150px;
    object-fit: cover;
    border: 1px solid #007bff;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.avatar {
    height: 40px;
    width: 40px;
    object-fit: cover;
}

/* Info Container */
.info-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-box {
    width: 80%;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

    .info-box label {
        font-weight: bold;
        color: #007bff;
        width: 40%;
    }

    .info-box span {
        width: 80%;
    }

.profile-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-image {
    border: 2px solid #007bff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 230px;
    object-fit: cover;
}

/* Carousel Styles */
.carousel-inner1 .carousel-item1 {
    height: 90vh;
    min-height: 300px;
    width: 100vw;
    background: no-repeat scroll center scroll;
    background-size: cover;
}

.carousel-item1::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: #000;
    opacity: 0.7;
}

.carousel-caption1 {
    bottom: 170px;
    padding-left: 10px;
    padding-right: 10px;
}

    .carousel-caption1 h5 {
        font-size: 70px;
        font-weight: 700;
        font-family: 'Traditional Arabic', 'Arial', sans-serif;
    }

    .carousel-caption1 p {
        font-size: 30px;
        top: 2rem;
        color: #c19a3c;
        font-family: 'Traditional Arabic', 'Arial', sans-serif;
    }

@media (max-width: 768px) {
    .carousel-caption1 h5 {
        font-size: 40px;
        font-weight: 100;
    }

    .carousel-caption1 p {
        font-size: 15px;
    }
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Quran Verse Section */
.quran-verse-section {
    height: 30vh;
    background: linear-gradient(135deg, var(--gold-color) 0%, #b38b2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.verse-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verse-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.verse-text {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.verse-reference {
    font-family: 'Amiri', serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
}

.verse-decorator {
    height: 3px;
    width: 80px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 auto 2rem;
    border-radius: 3px;
}

.verse-divider {
    height: 1px;
    width: 60px;
    background: rgba(255, 255, 255, 0.5);
    margin: 1.5rem auto;
}

@media (max-width: 768px) {
    .verse-text {
        font-size: 1.8rem;
    }

    .verse-reference {
        font-size: 1rem;
    }

    .quran-verse-section {
        height: 40vh;
    }
}

/* Teacher Card Styles */
.teacher-card {
    transition: all 0.3s ease;
    border: 2px solid var(--gold-color);
    border-radius: 3.5rem;
}

.teacher-image {
    height: 65%;
    overflow: hidden;
}

.teacher-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.7);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.teacher-card:hover .teacher-overlay {
    opacity: 1;
}

/* Testimonials Section */
.testimonial-slider {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-item {
    padding: 3rem;
    margin: 0 1rem;
    position: relative;
    transition: transform 0.3s ease;
}

    .testimonial-item:hover {
        transform: translateY(-5px);
    }

.quran-icon i {
    opacity: 0.7;
}

.testimonial-item::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.testimonial-item:hover::before {
    transform: scaleX(1);
}

@media (max-width: 768px) {
    .testimonial-item {
        margin-bottom: 2rem;
    }
}

/* About Section */
.about-section {
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}

.islamic-border-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #0a3a3a 0%, #c19a3c 50%, #0a3a3a 100%);
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.about-image {
    height: 500px;
}

.main-image {
    width: 80%;
    height: 80%;
    position: relative;
    z-index: 1;
}

.secondary-image {
    width: 60%;
    height: 60%;
    bottom: 0;
    right: 0;
    z-index: 2;
    border: 5px solid #f8f5ee;
}

.islamic-frame {
    border: 2px solid #c19a3c;
    position: relative;
}

    .islamic-frame::before {
        content: "";
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        border: 1px solid rgba(193, 154, 60, 0.3);
        z-index: -1;
        border-radius: 8px;
    }

/* Feature Items */
.feature-item {
    transition: transform 0.3s ease;
}

    .feature-item:hover {
        transform: translateX(10px);
    }

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-item:hover .icon-box {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Section Header */
.section-header {
    font-family: 'Traditional Arabic', 'Arial', sans-serif;
    position: relative;
    display: inline-block;
}

    .section-header h2 {
        font-family: 'Traditional Arabic', 'Arial', sans-serif;
        position: relative;
        display: inline-block;
    }

        .section-header h2::after {
            content: "";
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 50%;
            height: 3px;
            background: linear-gradient(to right, #c19a3c, transparent);
        }

    .section-header p {
        font-family: 'Traditional Arabic', 'Arial', sans-serif;
        color: #555;
        position: relative;
        padding-right: 20px;
    }

        .section-header p::before {
            content: "?";
            position: absolute;
            right: 0;
            top: -5px;
            color: #c19a3c;
            font-family: 'Traditional Arabic';
            font-size: 1.5em;
        }

@media (max-width: 992px) {
    .about-image {
        height: 400px;
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }

    .about-image {
        height: 350px;
    }

    .main-image {
        width: 100%;
    }

    .secondary-image {
        width: 70%;
        right: 10px;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* Program Cards */
.program-card {
    transition: all 0.4s ease;
    background: white;
}

    .program-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    }

.program-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.program-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.bg-gradient-gold {
    background: linear-gradient(45deg, #d4af37, #f9e090);
}

.bg-gradient-green {
    background: linear-gradient(45deg, #28a745, #5cb85c);
}

.bg-gradient-navy {
    background: linear-gradient(45deg, #1a3a5a, #2c4e6e);
}

.program-icon-container {
    position: absolute;
    top: -30px;
    right: 30px;
}

.program-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-gradient-gold {
    background: linear-gradient(to right, #d4af37, #f9e090);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-light-gold {
    background-color: rgba(212, 175, 55, 0.15);
}

.title-divider {
    position: relative;
    height: 3px;
    width: 80px;
    background: linear-gradient(to right, transparent, #d4af37, transparent);
    margin: 1.5rem auto;
}

    .title-divider .icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #f9f9f9;
        padding: 0 1rem;
        color: #d4af37;
    }

.section-badge {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Achievements Section */
.achievements-section {
    background: linear-gradient(135deg, #0a1a2a 0%, #1a3a5a 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.islamic-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%23ba9350" opacity="0.1" d="M50 0L100 50L50 100L0 50Z"/></svg>');
    background-size: 120px;
    opacity: 0.08;
    z-index: 1;
}

.gold-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(186, 147, 80, 0.15) 0%, transparent 70%);
    z-index: 1;
}

.floating-ayah {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: rgba(186, 147, 80, 0.2);
    font-weight: bold;
    z-index: 1;
    font-family: 'Traditional Arabic', 'Amiri', serif;
    line-height: 1.8;
    text-align: right;
    max-width: 300px;
    animation: fadeInOut 12s ease-in-out infinite;
}

    .floating-ayah::before,
    .floating-ayah::after {
        content: "﴾";
        color: rgba(186, 147, 80, 0.3);
        font-size: 3rem;
        position: absolute;
    }

    .floating-ayah::before {
        top: -30px;
        right: -15px;
    }

    .floating-ayah::after {
        bottom: -40px;
        left: -15px;
        transform: rotate(180deg);
    }

.bg-gold {
    background-color: #d4af37;
}

.bg-dark-800 {
    background-color: rgba(10, 26, 42, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(186, 147, 80, 0.3);
    transition: all 0.4s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.stat-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

    .stat-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        border-color: rgba(186, 147, 80, 0.6);
    }

    .stat-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(to right, #d4af37, #f9e090, #d4af37);
        background-size: 200% auto;
        animation: shine 3s linear infinite;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .stat-card:hover::after {
        opacity: 1;
    }

.stat-icon {
    position: absolute;
    opacity: 0.1;
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
    opacity: 0.15;
    transform: scale(1.1);
}

.floating-islamic-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

    .floating-islamic-elements .element {
        position: absolute;
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0.1;
        z-index: 1;
    }

.element-1 {
    width: 180px;
    height: 180px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23d4af37" d="M50 0a50 50 0 1 0 50 50A50 50 0 0 0 50 0zm0 90a40 40 0 1 1 40-40 40 40 0 0 1-40 40zm0-70a30 30 0 1 0 30 30 30 30 0 0 0-30-30zm0 50a20 20 0 1 1 20-20 20 20 0 0 1-20 20z"/></svg>');
    top: 10%;
    left: 5%;
    animation: float 8s ease-in-out infinite;
}

.element-2 {
    width: 120px;
    height: 120px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23d4af37" d="M50 0l12 36h38l-30 22 12 36-30-22-30 22 12-36L0 36h38z"/></svg>');
    bottom: 15%;
    right: 7%;
    animation: float 7s ease-in-out infinite 2s;
}

.element-3 {
    width: 150px;
    height: 150px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23d4af37" d="M50 0a5 5 0 0 1 5 5v90a5 5 0 0 1-10 0V5a5 5 0 0 1 5-5zm35 15a5 5 0 0 1 5 5v60a5 5 0 0 1-10 0V20a5 5 0 0 1 5-5zM15 15a5 5 0 0 1 5 5v60a5 5 0 0 1-10 0V20a5 5 0 0 1 5-5z"/></svg>');
    top: 30%;
    right: 10%;
    animation: float 9s ease-in-out infinite 1s;
}

.stat-number {
    position: relative;
    font-family: 'Tajawal', sans-serif;
}

    .stat-number::after {
        content: '+';
        position: absolute;
        top: 0;
        right: -15px;
        color: #d4af37;
        font-size: 1.5rem;
    }

.stat-label {
    position: relative;
    display: inline-block;
}

    .stat-label::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: #d4af37;
        transition: width 0.3s ease;
    }

.stat-card:hover .stat-label::after {
    width: 100%;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

@keyframes shine {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.4;
    }
}

/* Additional Utility Classes */
.text-limited {
    max-height: 100px;
    overflow-y: auto;
    word-wrap: break-word;
}

label {
    direction: rtl;
}
