/* Main Styles for Saql Al Mawahib Schools Website
   Developed by PUIUX
   Date: May 2025
*/

:root {
    /* School Colors */
    --primary-color: #24bbbd;
    --secondary-color: #233671;
    --white-color: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --transition: all 0.3s ease-in-out;
    
    /* Font Sizes */
    --heading-xl: 2.5rem;
    --heading-lg: 2rem;
    --heading-md: 1.5rem;
    --heading-sm: 1.25rem;
    --text-lg: 1.125rem;
    --text-md: 1rem;
    --text-sm: 0.875rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Alexandria', sans-serif;
    direction: rtl;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

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

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

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

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

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.section {
    padding: 5rem 0;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    font-size: var(--heading-lg);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.section-title.text-center::after {
    right: 50%;
    transform: translateX(50%);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(36, 187, 189, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(35, 54, 113, 0.3);
}

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--text-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
}

/* Animation Utilities */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.slide-up {
    animation: slideUp 0.8s ease-in-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-in-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Card styles */
.card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: var(--heading-sm);
    margin-bottom: 0.75rem;
}

.card-text {
    margin-bottom: 1.25rem;
    color: var(--dark-gray);
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-12 { width: 100%; }
.col-6 { width: 50%; }
.col-4 { width: 33.33%; }
.col-3 { width: 25%; }

/* Responsive */
@media (max-width: 992px) {
    .col-md-6 { width: 50%; }
    .col-md-12 { width: 100%; }
    
    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .col-sm-12 { width: 100%; }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: var(--heading-md);
    }
}

@media (max-width: 576px) {
    :root {
        --heading-xl: 2rem;
        --heading-lg: 1.75rem;
        --heading-md: 1.5rem;
        --heading-sm: 1.25rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    .footer-contact, .footer-links, .footer-about {
        margin-bottom: 2rem;
        display: none;
    }
    button#mobile-menu-btn-fixed {
        display: none;
    }
}
.puiux-logo-fixed{
    filter: invert(1);
}
.logo-container-fixed{
    background: rgba(19, 40, 56, 0.546) !important;
}

/* Header and Navigation styles will be in separate component CSS files */