@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    --primary-color: #294c86; /* Logo Dark Blue */
    --secondary-color: #297cc9; /* Logo Light Blue */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #121212;
    --transition-speed: 0.3s;
    --card-bg: rgba(255, 255, 255, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

/* Force Font Awesome family to avoid overrides */
.fas, .fab, .far, .fa-solid, .fa-brands, .fa-regular {
    font-family: "Font Awesome 6 Free" !important;
}

body {
    direction: rtl;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

p {
    margin-bottom: 1rem;
    color: #555;
    font-size: 1.1rem;
}

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(41, 76, 134, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar .logo img {
    height: 50px;
    width: auto;
}

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

.nav-links li a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed);
}

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

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 8px;
    margin-top: 5px;
    overflow: hidden;
    animation: dropdownFade 0.3s ease;
}

.dropdown-content a {
    color: #333 !important;
    padding: 12px 16px !important;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
    text-align: right;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color) !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

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

.menu-toggle {
    display: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Banner Slider */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 0;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-light);
    z-index: 10;
    width: 80%;
}

.hero-content h1 {
    color: var(--text-light);
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease forwards;
}

.hero-content p {
    color: var(--text-light);
    font-size: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease forwards;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 30px;
    text-transform: uppercase;
    transition: all var(--transition-speed);
    border: 2px solid var(--secondary-color);
}

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

/* Sections */
section {
    padding: 6rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2rem;
}

.about-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed);
}

.about-image:hover {
    transform: scale(1.02);
}

.small-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 80px);
    gap: 15px;
    margin-top: 2rem;
}

.small-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed);
    cursor: pointer;
}

.small-thumbnails img:hover {
    transform: scale(1.1);
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    animation: zoomIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

/* Modal Navigation Arrows */
.modal-prev, .modal-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s;
    user-select: none;
    -webkit-user-select: none;
    text-decoration: none;
}

.modal-next {
    left: 5%;
}

.modal-prev {
    right: 5%;
}

.modal-prev:hover, .modal-next:hover {
    color: var(--secondary-color);
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
}

/* Values Cards */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border-bottom: 4px solid var(--secondary-color);
}

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

.value-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary-color);
    transition: width var(--transition-speed);
    z-index: 0;
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card-content {
    position: relative;
    z-index: 1;
}

.service-card-content h3,
.service-card-content p {
    transition: color var(--transition-speed);
}

.service-card:hover .service-card-content h3,
.service-card:hover .service-card-content p {
    color: white;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: color var(--transition-speed);
}

.service-card:hover .service-icon {
    color: white;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    min-height: 300px;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Header for Inner Pages */
.page-header {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8rem 5% 4rem;
    text-align: center;
}

.page-header h1 {
    color: var(--text-light);
    margin-bottom: 0;
}

.page-header p {
    color: var(--text-light);
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 2rem 0;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content {
        width: 90%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    section {
        padding: 3rem 5%;
    }

    .about-grid, .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .small-thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 10px;
    }

    .small-thumbnails img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .page-header {
        padding: 6rem 5% 3rem;
    }

    .modal-content {
        width: 95%;
    }

    .modal-next, .modal-prev {
        font-size: 25px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

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

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ====================================================
   Para-Athletics Registration System Styles
   ==================================================== */

body.para-theme {
    --primary-color: #8B0000; /* Dark Red */
    --secondary-color: #e74c3c; /* Red */
    font-family: 'Tajawal', sans-serif;
}

body.para-theme * {
    font-family: 'Tajawal', sans-serif;
}

body.para-theme .navbar {
    background: rgba(139, 0, 0, 0.95); /* Dark Red Navbar */
}

.para-registration-section {
    padding: 3rem 5%;
    background-color: var(--bg-light);
}

.para-form-container {
    max-width: 900px;
    margin: 0 auto;
}

.form-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
}

.form-section-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #444;
}

.form-group input, 
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: border-color var(--transition-speed);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(41, 124, 201, 0.1);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.para-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.para-table th, 
.para-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.para-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.para-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.para-table input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #1a355e;
    color: white;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.btn-danger:hover {
    background-color: #c0392b;
}

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

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

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    width: 100%;
}

.form-submit-wrapper {
    text-align: center;
    margin-top: 2rem;
}

/* Players Grid */
.players-section {
    padding: 3rem 5%;
    background-color: var(--bg-light);
}

.players-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Removing old player-card styles as we are using inline styles for the list view now */
.player-card {
    transition: transform var(--transition-speed);
}
.player-card:hover {
    transform: translateY(-2px);
}

.player-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed);
}

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

.player-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.player-info {
    padding: 1.5rem;
}

.player-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.badge {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

/* Para Modal */
.para-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.para-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: zoomIn 0.3s ease;
    overflow: hidden;
}

.player-modal-close {
    position: absolute;
    left: 20px;
    top: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.modal-header-info {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.modal-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
}

.modal-titles h2 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.modal-badge {
    display: inline-block;
    background: var(--secondary-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.modal-body {
    padding: 2rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h3 {
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
}

.pb-item {
    display: flex;
    flex-direction: column;
}

.pb-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.pb-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
}

.med-text {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    border-right: 4px solid var(--secondary-color);
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-header-info {
        flex-direction: column;
        text-align: center;
    }
    
    .pb-grid {
        grid-template-columns: 1fr;
    }
}
/* Custom Dropdown Styling */
.modern-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 1em;
    padding-left: 2.5rem !important;
}

/* Modern File Upload */
.modern-upload-container {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fcfcfc;
    position: relative;
}

.modern-upload-container:hover {
    border-color: var(--primary-color);
    background: #fffafa;
}

.modern-upload-container i {
    font-size: 2.5rem;
    color: #ccc;
    margin-bottom: 1rem;
    display: block;
}

.modern-upload-container .upload-text {
    font-weight: 600;
    color: #666;
}

.modern-upload-container input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.preview-container {
    margin-top: 1rem;
    display: none;
}

.preview-container img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 2px solid #eee;
}

/* Success/Error Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    transform: translateY(100px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateY(0);
}
