/*
Theme Name: Mahinaz Custom Theme
Theme URI: https://example.com/
Author: Tarek + ChatGPT
Author URI: https://example.com/
Description: Custom theme to replicate the existing Mahinaz Elmessiry site (staging).
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: mahi-theme
*/

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #111111;
}

a {
    color: #006d6d;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */

.site-header {
    position: relative;
    z-index: 20;
    width: 100%;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo img {
    max-height: 60px;
    height: auto;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.site-nav a {
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Footer */

.site-footer {
    border-top: 1px solid #ddd;
    margin-top: 40px;
    padding: 16px 24px;
    font-size: 13px;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-right a {
    margin-left: 16px;
}

/* Layout */

.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Homepage slider (Swiper) */

.swiper {
    width: 100%;
    height: auto;
    padding-bottom: 40px;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.slide-caption {
    padding: 12px 16px;
    font-size: 14px;
}

/* Custom Swiper controls similar to original */

.swiper-pagination-bullet {
    background: teal;
    opacity: 0.7;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: darkcyan;
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: teal;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255,255,255,1);
}

/* Projects page */

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.project-block {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr);
    gap: 32px;
    align-items: flex-start;
}

.project-text h2 {
    margin-top: 0;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.project-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* About page */

.about-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1.5fr) 220px;
    gap: 32px;
}

.about-sidebar a {
    display: block;
    margin-bottom: 8px;
}

/* Media grid */

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.media-grid img {
    width: 100%;
    height: auto;
}

/* Responsive */

@media (max-width: 768px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .project-block {
        grid-template-columns: 1fr;
    }
    .about-layout {
        grid-template-columns: 1fr;
    }
}
