/*
Theme Name: Discussion Orders on Petitions
Theme URI: 
Author: Manus AI
Author URI: 
Description: A professional WordPress theme for the "Orders on Petitions" discussion session at the Higher Judicial Institute.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: discussion-orders
Tags: custom-background, custom-header, custom-menu, featured-images, flexible-header, full-width-template, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
*/

/* CSS Variables */
:root {
    --primary-color: #1a3a52;
    --secondary-color: #d4af37;
    --text-primary: #333;
    --text-secondary: #666;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --border-color: #ddd;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Dark Mode */
body.dark-mode {
    --primary-color: #2d5a7b;
    --secondary-color: #ffd700;
    --text-primary: #e8e8e8;
    --text-secondary: #b0b0b0;
    --bg-primary: #1a1a1a;
    --bg-secondary: #252525;
    --border-color: #444;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

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

/* Header and Navigation */
.header {
    background-color: var(--primary-color);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.nav-brand p {
    font-size: 0.9rem;
    color: #ccc;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

.theme-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
    order: -1;
    margin-left: auto;
}

.theme-toggle:hover {
    color: var(--secondary-color);
}

.nav-toggle {
    order: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d5a7b 100%);
    color: white;
    padding: 120px 20px;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-logo {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
}

.hero-logo-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--secondary-color);
    object-fit: cover;
}

body.dark-mode .hero-logo-img {
    border-color: #ffd700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.hero-date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.about-content.about-centered {
    grid-template-columns: 1fr;
    text-align: center;
}

.about-content.about-centered .about-text {
    max-width: 800px;
    margin: 0 auto;
}  max-width: 1200px;
    margin: 0 auto;
}

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

.discussion-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    border: 3px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

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

body.dark-mode .discussion-img {
    border-color: #ffd700;
}

.about-text {
    text-align: justify;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-content p {
        font-size: 1rem;
    }
}

/* Speaker Section */
.speaker {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.speaker-content {
    max-width: 900px;
    margin: 0 auto;
}

.speaker-card {
    background-color: var(--bg-secondary);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    border-right: 5px solid var(--secondary-color);
}

.speaker-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.speaker-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    color: var(--text-primary);
}

/* Details Section */
.details {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.details-content {
    max-width: 1000px;
    margin: 0 auto;
}

.detail-item {
    background-color: var(--bg-primary);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.detail-item h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.detail-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: justify;
}

.detail-list {
    list-style-position: inside;
    margin-left: 20px;
}

.detail-list li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-align: justify;
}

/* Topics Section */
.topics {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.topic-card {
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s, box-shadow 0.3s;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.topic-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.topic-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
    text-align: justify;
}

/* Cooperation Section */
.cooperation {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.cooperation-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.cooperation-item {
    background-color: var(--bg-primary);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    text-align: center;
    border-top: 4px solid var(--secondary-color);
}

.cooperation-item h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.cooperation-item p {
    font-size: 1rem;
    color: var(--text-secondary);
}

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

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

.footer-section h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-slogan {
    font-style: italic;
    color: var(--secondary-color);
    margin-top: 10px;
}

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

.footer-bottom p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero-subtitle {
        font-size: 1.5rem;
    }

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

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .speaker-card,
    .detail-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .nav-brand h1 {
        font-size: 1.3rem;
    }

    .nav-brand p {
        font-size: 0.8rem;
    }
}


/* Courts Section */
.courts {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.courts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.courts-map {
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--secondary-color);
}

body.dark-mode .map-image {
    border-color: #ffd700;
}

.courts-list {
    display: flex;
    flex-direction: column;
}

.courts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.court-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.court-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-light);
    background-color: rgba(212, 175, 55, 0.1);
}

body.dark-mode .court-item:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

.court-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

body.dark-mode .court-item i {
    color: #ffd700;
}

.court-item h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .courts-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .courts-grid {
        grid-template-columns: 1fr;
    }

    .court-item {
        padding: 12px;
        gap: 12px;
    }

    .court-item h4 {
        font-size: 0.9rem;
    }

    .hero-logo-img {
        width: 80px;
        height: 80px;
    }

    .hero-logo {
        top: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .courts-grid {
        grid-template-columns: 1fr;
    }

    .court-item {
        padding: 10px;
        gap: 10px;
    }

    .court-item i {
        font-size: 1.2rem;
    }

    .court-item h4 {
        font-size: 0.85rem;
    }

    .hero-logo-img {
        width: 70px;
        height: 70px;
    }
}


/* Courts Section */
.courts {
    background-color: var(--bg-secondary);
    padding: 80px 20px;
}

.courts-map-full {
    text-align: center;
    margin-bottom: 40px;
}

.courts-map-full .map-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
}

.courts-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

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

.map-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
}

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

.court-item {
    background-color: var(--bg-primary);
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.court-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.court-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.court-item h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .courts-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .courts-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}


/* Gallery Section */
.gallery-section {
    text-align: center;
    padding: 30px 0;
    margin-top: 30px;
}

.gallery-link {
    display: inline-block;
}

.gallery-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-medium);
}

.gallery-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}

.gallery-btn i {
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .gallery-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .gallery-btn i {
        font-size: 1.1rem;
    }
}
