
/* ✅ تنسيق الجسم */
/* المشكلة: قد يكون الجسم لا يسمح بالتفاعل */
/* الحل: إضافة pointer-events: auto لضمان التفاعل */
body {
    font-family: Arial, sans-serif;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    padding-bottom: 60px; /* زيادة المسافة السفلية لتعويض الشريط الثابت */
    background-color: black;
    color: rgb(0, 204, 255);
    pointer-events: auto;
}
/* ✅ خلفية الفيديو */
/* المشكلة: قد يكون الفيديو الخلفي يغطي العناصر ويمنع التفاعل */
/* الحل: إضافة pointer-events: none لمنع التفاعل مع الفيديو الخلفي */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* وضع الفيديو خلف المحتوى */
    object-fit: cover; /* ضمان ملء الشاشة */
    pointer-events: none; /* منع التفاعل مع الفيديو */
}
/* شريط علوي */
/* المشكلة: قد يكون الشريط العلوي يغطي العناصر ويمنع التفاعل */
/* الحل: تقليل z-index وإضافة pointer-events: auto لضمان التفاعل الصحيح */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1e5e507;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
}

/* الشعار */
.logo {
    height: 50px; /* تعديل الحجم حسب الحاجة */
}

/* صورة المستخدم في الشريط العلوي */
.top-profile-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
    cursor: pointer;
}

/* تنسيق حجم صورة المستخدم لمطابقة حجم الشعار */
.logo-size {
    height: 50px;
    width: 50px;
    margin-left: 30px; /* تحريك الصورة 30 بكسل إلى اليسار */
}

.profile-pic-link {
    display: flex;
    align-items: center;
}

.notification-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    position: relative;
}

.notification-btn i {
    color: #333;
}

.notification-btn:hover i {
    color: #007bff;
}

/* قائمة الإشعارات */
/* المشكلة: قد تكون قائمة الإشعارات تغطي العناصر وتمنع التفاعل */
/* الحل: إضافة z-index و pointer-events لضمان التفاعل الصحيح */
.notification-list {
    position: absolute;
    top: 40px;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: 250px;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 8px;
    padding: 10px;
    display: none;
    z-index: 1001;
    pointer-events: auto;
}

.notification-list p {
    text-align: center;
    color: #555;
    font-size: 14px;
    margin: 0;
}

/* إظهار القائمة عند النقر */
.notification-list.show {
    display: block;
}

/* إخفاء القائمة افتراضيًا */
.hidden {
    display: none;
}

/* ✅ شريط التنقل في الأسفل */
.navbar {
    background-color: #000000; /* أسود تمامًا */
    padding: 12px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed; /* جعل الشريط ثابتًا */
    bottom: 0; /* تثبيت الشريط في الأسفل */
    left: 0;
    width: 100%;
    z-index: 998; /* تقليل z-index لمنع التغطية */
    pointer-events: auto; /* السماح بالتفاعل مع الشريط */
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links {
    display: flex;
    flex-wrap: nowrap; /* منع العناصر من النزول لسطر جديد */
    justify-content: center; /* توسيط العناصر */
    gap: 5px; /* مسافة بين الأيقونات */
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.navbar a {
    color: white; /* اللون الأبيض للنص */
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    padding: 10px 5px; /* مسافات داخل الروابط */
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column; /* ترتيب عمودي */
    align-items: center;
    justify-content: center;
    min-width: 60px; /* عرض أدنى لكل عنصر */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.navbar a i {
    font-size: 18px; /* حجم الأيقونات */
    margin-bottom: 4px; /* مسافة بين الأيقونة والنص */
}

.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar a.active {
    color: #13ece2; /* اللون المميز للعنصر النشط */
    background-color: rgba(19, 236, 226, 0.15);
    box-shadow: 0 0 10px rgba(19, 236, 226, 0.3);
}

.navbar img {
    height: 60px;
    margin-right: auto;
}

/* ✅ التأكد من أن الفيديو في الخلف */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* iframe-based background (loads a full HTML page as background, non-interactive) */
.page-background-iframe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* sit behind the overlay */
    border: 0;
    pointer-events: none; /* allow clicks to pass through */
}

/* semi-opaque overlay above the starry iframe to improve contrast */
.page-background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* above the iframe (-2) but behind content (0+) */
    background: rgba(0,0,0,0.35); /* slightly lighter overlay so stars appear brighter */
    pointer-events: none;
}

/* ✅ الرأس */
.header {
    background-color: rgba(0, 0, 0, 0.7); /* خلفية شفافة فوق الفيديو */
    padding: 20px;
    text-align: center;
    color: #5ac5f7;
    font-size: 24px;
    font-weight: bold;
}

/* ✅ محتوى الصفحة */
.container {
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    background-color: rgba(111, 119, 233, 0.295); /* خلفية شفافة فوق الفيديو */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(179, 48, 240, 0.2);
}

h1, h2 {
    color: #12da12;
    text-align: center;
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.btn {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #08faee;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ----------------------
   Responsive: phone screens
   Target: portrait phones and small devices (<= 600px)
   ---------------------- */
@media (max-width: 600px) {
    /* reduce header padding and font sizes */
    .header { padding: 12px; font-size: 18px; }
    .header h1 { font-size: 20px; }

    /* logo & profile sizes */
    .logo { height: 38px; }
    .top-profile-pic, .top-profile-pic.logo-size { width: 36px; height: 36px; margin-left: 12px; }

    /* CTA and preview icons should be slightly smaller */

    /* make call-to-action stack vertically on small screens */
    .cta-section .cta-buttons { display: flex; flex-direction: column; gap: 10px; align-items: center; }

    /* preview cards: single column and compact spacing */
    .preview-section { padding: 12px; }
    .preview-section .preview-item { margin-bottom: 12px; }

    /* container padding & width */
    .container { padding: 12px; margin: 12px; max-width: calc(100% - 24px); }

    /* footer adjustments */
    .footer { padding: 12px; font-size: 15px; }

    /* navbar: increase tappable area and ensure icons are spaced */
    .navbar { padding: 10px 0; box-shadow: 0 -2px 10px rgba(0,0,0,0.35); }
    .nav-links { gap: 8px; justify-content: space-around; }
    .navbar a { min-width: 50px; padding: 8px 6px; font-size: 12px; }

    /* give content bottom breathing room above fixed navbar */
    body { padding-bottom: 88px; }

    /* make page background iframe still cover and remain non-interactive */
    .page-background-iframe { width: 100%; height: 100%; }
}

/* very small devices (older phones / narrow viewports) */
@media (max-width: 380px) {
    
    .header h1 { font-size: 18px; }
    .logo { height: 34px; }
    .navbar a { min-width: 44px; padding: 6px 4px; }
    body { padding-bottom: 96px; }
}

/* End responsive rules */

.btn:hover {
    background-color: #06c7bb;
}

/* ✅ الفوتر */
.footer {
    margin-top: 40px;
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7); /* خلفية شفافة */
    border-top: 1px solid #000000;
}

.footer a {
    color: rgb(33, 166, 255);
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}

/* ✅ شريط الصفحة الحالية */
.current-page-bar {
    height: 4px;
    background-color: #000000; /* أسود تمامًا */
    transition: all 0.3s ease;
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ✅ تصميم قسم الأدوات */
.tools-section {
    padding: 40px 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7); /* خلفية شفافة فوق الفيديو */
}

.tools-section h1 {
    color: #12da12;
    font-size: 32px;
    margin-bottom: 40px;
}

.tools-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 204, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 204, 255, 0.3);
}

.tool-card h2 {
    color: #12da12;
    font-size: 24px;
    margin-bottom: 10px;
}

.tool-card p {
    color: rgb(0, 204, 255);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tool-btn {
    background-color: #08faee;
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    position: relative; /* إضافة لاستخدام القوالب */
}

.tool-btn::after {
    content: attr(data-tooltip); /* نص القوالب من الخاصية data-tooltip */
    position: absolute;
    bottom: 100%; /* وضع القوالب فوق الزر */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8); /* خلفية القوالب */
    color: white; /* لون النص */
    padding: 5px 10px;
    pointer-events: none; /* منع التفاعل مع القوالب */
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap; /* منع النص من الانتقال لسطر جديد */
    opacity: 0; /* إخفاء القوالب بشكل افتراضي */
    visibility: hidden; /* إخفاء القوالب بشكل افتراضي */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tool-btn:hover::after {
    opacity: 1; /* إظهار القوابل عند التمرير */
    visibility: visible;
}

/* ✅ التنسيق الإضافي للأدوات */
.tool-section {
    background-color: #616af03f;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 204, 255, 0.2);
}

.tool-btn {
    background-color: #08faee;
    color: black;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    display: block;
    margin-top: 10px;
    text-decoration: none;
}

.tool-btn:hover {
    background-color: #06c7bb;
}

/* بطاقات فارغة مكان الأزرار التوجيهية */
.empty-card {
    width: 140px;
    height: 80px;
    margin: 12px auto;
    border: 2px dashed rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    pointer-events: none;
}

@media (max-width: 600px) {
    .empty-card { width: 100%; max-width: 320px; height: 72px; }
}

/* Home cards grid for index.php */
.home-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

/* Reuse .card visual language but force 16:9 aspect ratio for home cards */
.home-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 16/9;
    min-height: 140px;
    position: relative;
    padding: 0;
}

.home-card.loading { pointer-events: none; }
.home-card .thumb{ position:absolute; inset:0; display:block; }
.home-card .thumb img{ width:100%; height:100%; object-fit:cover; display:block }
.home-card .content-info{ position:relative; z-index:2; padding:12px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.45)); display:flex; flex-direction:column; gap:8px; }
.home-card .card-title, .home-card .content-title{ font-weight:800; font-size:15px; margin:0; color:#fff }
.home-card .card-sub, .home-card .publisher-name, .home-card .publisher-info, .home-card .additional-info{ font-size:13px; color:#ddd }

/* publisher layout inside home-card content-info */
.home-card .publisher-section{ display:flex; align-items:center; gap:8px }
.home-card .publisher-avatar{ width:44px; height:44px; border-radius:50%; object-fit:cover; flex-shrink:0 }
.home-card .publisher-name{ font-weight:600; color:#fff; font-size:14px }
.home-card .additional-info{ display:flex; gap:8px; align-items:center; font-size:12px; color:#ccc }
.home-card .views-count, .home-card .publish-date{ color:#ccc; font-size:12px }

/* make the thumb use cover and show gradient overlay at bottom for readability */
.home-card .thumb::after{ content:''; position:absolute; left:0; right:0; bottom:0; height:40px; background:linear-gradient(to top, rgba(0,0,0,0.65), transparent); pointer-events:none }

/* When publisher info is shown, keep the thumbnail bright and reduce the dark overlay */
.home-card.no-dim .thumb::after{ display:none }
.home-card.no-dim .content-info{ background: rgba(0,0,0,0.08); }

/* Content card specific adjustments (bigger, clearer metadata) */
#card-content { max-width: 980px; min-height: 260px; aspect-ratio: auto; }
#card-content .content-title { font-size: 18px; font-weight:700 }
#card-content .publisher-avatar { width:48px; height:48px }
#card-content .additional-info { font-size:13px; color:#cfcfcf }
#card-content .publish-date { font-weight:500; color:#dcdcdc }

/* Make the thumbnail sit above and the info block below (like content.php) */
#card-content { background: transparent; }
#card-content .thumb { position: relative; width: 100%; padding-bottom: 56.25%; border-top-left-radius:12px; border-top-right-radius:12px; overflow: hidden; background: #081018; }
#card-content .thumb img { position: absolute; top:0; left:0; width:100%; height:100%; object-fit:cover }
#card-content .content-info { position: relative; z-index: 2; padding: 14px; background: rgba(0,0,0,0.7); border-bottom-left-radius:12px; border-bottom-right-radius:12px; margin: 0; display:flex; flex-direction:column; gap:8px }
#card-content .content-info .content-title{ margin-bottom:6px }
#card-content .publisher-section { align-items:center }

@media (max-width: 720px) {
    #card-content { max-width: 100%; min-height: 180px }
    #card-content .content-title { font-size: 15px }
    #card-content .publisher-avatar { width:36px; height:36px }
}

/* Responsive layout for home cards across laptop and phone */
/* Desktop / large screens */
@media (min-width: 1024px) {
    .home-cards { grid-template-columns: repeat(3, minmax(220px, 1fr)); gap:18px }
    .home-card { min-height: 220px }
    #card-content { max-width: 980px; min-height: 320px }
    #card-content .content-title { font-size: 20px }
    #card-content .publisher-avatar { width:56px; height:56px }
}

/* Medium screens (tablets / small laptops) */
@media (min-width: 720px) and (max-width: 1023px) {
    .home-cards { grid-template-columns: repeat(2, minmax(220px, 1fr)); gap:16px }
    .home-card { min-height: 200px }
    #card-content { max-width: 720px; min-height: 240px }
    #card-content .content-title { font-size: 17px }
    #card-content .publisher-avatar { width:44px; height:44px }
}

/* Small screens (phones) */
@media (max-width: 719px) {
    .home-cards { grid-template-columns: 1fr; gap:12px }
    .home-card { min-height: 160px; aspect-ratio: 16/9 }
    #card-content { max-width: 100%; min-height: 160px }
    #card-content .content-title { font-size: 15px }
    #card-content .publisher-avatar { width:36px; height:36px }
    .home-card .content-info { padding:10px }
    .home-card .publisher-section { gap:8px }
    .home-card .tool-section.in-home .tool-icon-btn i { font-size:36px }
}

/* Touch targets and spacing improvements */
.home-card .tool-icon-btn { padding: 8px; border-radius: 8px }
.home-card .publisher-avatar { border: 2px solid rgba(255,255,255,0.06) }

/* adapt tool-section when placed inside a home-card */
.home-card .tool-section.in-home {
    background: transparent;
    padding: 0 8px 12px 8px;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}
.home-card .tool-section.in-home h2 { color: #fff; margin: 0; font-size: 16px }
.home-card .tool-section.in-home p { color: #ddd; margin: 6px 0 0 0; font-size: 13px }
.home-card .tool-section.in-home .tool-icon-btn, .home-card .tool-section.in-home .tool-icon-btn i { display: block; margin: 10px auto 0; }
.home-card .tool-section.in-home .tool-icon-btn i { font-size: 40px; color: #fff; text-shadow: none }

/* animate tool icon when used inside home-card */
.home-card .tool-section.in-home .tool-icon-btn { background-color: transparent; border: none; display: block; transition: transform 0.5s ease; margin: 10px auto 0; }
.home-card .tool-section.in-home .tool-icon-btn:hover, .home-card .tool-section.in-home .tool-icon-btn:active { transform: rotate(360deg); }

/* CTA specific styling for the tools card (Wheel of Life) */
.cta-section .card#card-tools-custom { max-width: 360px; width: 100%; margin: 0 auto; background: rgba(0,0,0,0.7); border-radius: 12px; border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 6px 20px rgba(0,0,0,0.5); padding: 0; }
.cta-section .card#card-tools-custom .tool-section.in-home { background: transparent; padding: 14px; height: auto; display:flex; flex-direction:column; justify-content:space-between; }
.cta-section .card#card-tools-custom .tool-section.in-home h2, .cta-section .card#card-tools-custom .tool-section.in-home p { color: #fff; }
.cta-section .card#card-tools-custom .tool-section.in-home .tool-icon-btn i { font-size: 48px; color: #000; text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 0 10px rgba(255,255,255,0.8); }

/* ensure CTA buttons area centers children vertically when appropriate */
.cta-section .cta-buttons { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; }

@media (max-width:520px){
    .home-card { min-height:110px }
    .home-card .card-title{ font-size:14px }
}


/* إضافة بلوك شفاف حول المحتوى */
.transparent-block {
    background-color: rgba(255, 255, 255, 0.8); /* شفافية 80% */
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 1200px;
}

/* تحسين تنسيق النصوص */
.header, .cta-section, .why-shams-section, .preview-section, .footer {
    margin: 20px 0;
    text-align: center;
}

/* تحسين تنسيق الأزرار */
.cta-button, .preview-button {
    background-color: #00b7ff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px;
    display: inline-block;
}

.cta-button:hover, .preview-button:hover {
    background-color: #ffc400;
}

/* ✅ دعم الشاشات الصغيرة - هواتف */
@media (max-width: 480px) {
    .top-bar {
        padding: 8px 15px;
    }

    .logo {
        height: 40px;
    }

    .logo-size {
        height: 40px;
        width: 40px;
        margin-left: 15px;
    }

    .top-profile-pic {
        width: 30px;
        height: 30px;
    }

    .navbar {
        padding: 8px 0;
    }

    .nav-links {
        gap: 2px;
    }

    .navbar a {
        font-size: 12px; /* نص أصغر */
        padding: 8px 2px;
        min-width: 50px;
    }

    .navbar a i {
        font-size: 16px; /* حجم الأيقونات */
        margin-bottom: 2px;
    }

    .header {
        font-size: 20px;
        padding: 15px;
    }

    .container {
        padding: 15px;
        margin: 15px auto;
        max-width: 95%; /* جعل العرض أكثر مرونة في الشاشات الصغيرة */
    }

    .tool-card, .tool-section {
        width: calc(100% - 40px); /* عرض كامل مع هوامش */
        margin: 10px;
    }

    .tools-container {
        gap: 10px;
    }

    .cta-button, .preview-button {
        padding: 8px 15px;
        margin: 5px;
        font-size: 14px;
    }
}

/* ✅ دعم الشاشات المتوسطة - أجهزة لوحية */
@media (min-width: 481px) and (max-width: 768px) {
    body {
        padding-top: 90px;
        padding-bottom: 65px;
    }

    .top-bar {
        padding: 8px 15px;
    }

    .logo {
        height: 45px;
    }

    .logo-size {
        height: 45px;
        width: 45px;
        margin-left: 20px;
    }

    .top-profile-pic {
        width: 33px;
        height: 33px;
    }

    .navbar {
        padding: 10px 0;
    }

    .nav-links {
        gap: 3px;
    }

    .navbar a {
        font-size: 13px; /* نص أصغر */
        padding: 10px 3px;
        min-width: 55px;
    }

    .navbar a i {
        font-size: 17px; /* حجم الأيقونات */
        margin-bottom: 3px;
    }

    .header {
        font-size: 22px;
        padding: 18px;
    }

    .container {
        padding: 18px;
        margin: 18px auto;
        max-width: 90%;
    }

    .tool-card, .tool-section {
        width: calc(50% - 40px); /* عرض نصف الشاشة مع هوامش */
    }

    .tools-container {
        gap: 15px;
    }
}

/* ✅ دعم الشاشات الكبيرة - أجهزة كمبيوتر */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .navbar {
        padding: 12px 0;
    }

    .nav-links {
        gap: 4px;
    }

    .navbar a {
        font-size: 14px; /* نص أصغر */
        padding: 12px 4px;
        min-width: 65px;
    }

    .navbar a i {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .container {
        max-width: 85%;
    }

    .tool-card, .tool-section {
        width: calc(33.33% - 30px); /* عرض ثلث الشاشة مع هوامش */
    }
}

/* ✅ دعم الشاشات الكبيرة جدًا - شاشات كبيرة */
@media (min-width: 1025px) {
    body {
        padding-top: 110px;
        padding-bottom: 60px;
    }

    .navbar {
        padding: 15px 0;
    }

    .nav-links {
        gap: 5px;
    }

    .navbar a {
        font-size: 14px;
        padding: 12px 5px;
        min-width: 70px;
    }

    .navbar a i {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .container {
        max-width: 80%;
    }

    .tool-card, .tool-section {
        width: 250px; /* عرض ثابت */
    }
}

/* --- تصميم أيقونات التواصل الاجتماعي المخصص --- */
.social-icon-custom {
    background-color: transparent !important; /* إزالة الخلفية الدائرية */
    color: black !important; /* لون الأيقونة أسود */
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 0 8px rgba(255, 255, 255, 0.8); /* حواف بيضاء لامعة */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 22px; /* تكبير حجم الأيقونة قليلاً */
    transition: all 0.3s ease;
}

.social-icon-custom:hover,
.social-icon-custom:active {
    color: white !important; /* لون الأيقونة أبيض عند التمرير */
    text-shadow: 0 0 3px black, 0 0 5px black, 0 0 8px black; /* حواف سوداء لامعة */
    transform: scale(1.1); /* تكبير بسيط عند التمرير */
}

/* تعديل خاص لأيقونة X لضمان ظهورها بشكل جيد (دعم fa-x و fa-x-twitter) */
.social-icon-custom .fa-x, .social-icon-custom .fa-x-twitter {
    font-size: 20px;
}
