/* ==========================================================================
   الفوتر الموحّد (Footer) — مصدر واحد لكل صفحات الموقع
   ========================================================================== */
.footer-section {
    background-color: rgb(1 52 61);
    color: #f8f9fa;
    position: relative;
    padding-top: 80px;
    border-top: 4px solid #e1b12c;
    overflow: hidden;
    font-family: 'Tajawal', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

.footer-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(225, 177, 44, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(225,177,44,0.2));
}

.footer-logo:hover {
    transform: scale(1.05);
}

.brand-description {
    color: #b3c9cc;
    line-height: 1.5;
    font-size: 16px;
    margin-bottom: 30px;
    text-align: justify;
    font-weight: 500;
}

.widget-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    color: #ffffff;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: #e1b12c;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 15px;
}
.footer-links a {
    color: #b3c9cc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15.5px;
}
.footer-links a i {
    font-size: 14px;
    color: #e1b12c;
    transition: transform 0.3s ease;
}
.footer-links a:hover {
    color: #e1b12c;
    padding-right: 8px;
}
.footer-links a:hover i {
    transform: translateX(-3px);
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
.contact-icon-circle {
    width: 45px;
    height: 45px;
    background: #003b46;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e1b12c;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 1px solid rgba(225, 177, 44, 0.1);
    flex-shrink: 0;
}
.contact-item:hover .contact-icon-circle {
    background: #e1b12c;
    color: #00171c;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(225, 177, 44, 0.2);
}
.contact-text h5 {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: #e1b12c;
    font-weight: 800;
}
.contact-text p {
    margin: 0;
    font-size: 14px;
    color: #b3c9cc;
    transition: color 0.3s ease;
    font-weight: 500;
}
.contact-item:hover .contact-text p {
    color: #ffffff;
}

.social-container {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}
.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #003b46;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(225, 177, 44, 0.1);
}
.social-btn:hover {
    background: #e1b12c;
    border-color: #e1b12c;
    color: #00171c;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(225, 177, 44, 0.3);
}

.bottom-bar {
    background: rgb(1 52 61 / 95%);
    padding: 20px 0;
    margin-top: 60px;
    border-top: 1px solid #926d07;
}
.copyright-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 12px;
}
.copy-text {
    font-size: 13px;
    color: #b3c9cc;
    font-weight: 500;
}
.copy-text span {
    color:  #b3c9cc;
    font-weight: 500;
}
.dev-credit {
    font-size: 14px;
    color: #839b9f;
}
.dev-credit a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}
.dev-credit a:hover {
    color: #e1b12c;
}
.dev-credit a::selection {
    background-color: #e1b12c;
    color: #00171c;
}

/* القاعدة الأساسية لعرض المحتوى — كانت ناقصة، وهذا سبب التصاق النص بحواف الشاشة */
.container-custom {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.footer-col {
    min-width: 0;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr !important; gap: 40px;}
}

@media (max-width: 600px) {
    .container-custom { padding: 0 20px; }
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
