diff --git a/core/templates/core/index.html b/core/templates/core/index.html index 51bddb9..aba3174 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -7,7 +7,7 @@ {% if banners %} {% endif %} diff --git a/static/css/custom.css b/static/css/custom.css index 92270ae..6171ce3 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -18,11 +18,6 @@ body { overflow-x: hidden; } -[lang="ar"] body { - direction: rtl; - text-align: right; -} - .navbar { background-color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); @@ -85,51 +80,29 @@ body { margin-bottom: 40px; } -.role-card { - background: var(--white); - padding: 40px; - border-radius: 20px; - box-shadow: 0 10px 30px rgba(0,0,0,0.05); - transition: all 0.3s ease; - border: 1px solid transparent; - height: 100%; - cursor: pointer; +/* Carousel Adjustments */ +.carousel-item { + transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out; } -.role-card:hover { - border-color: var(--secondary-color); - transform: translateY(-10px); +.carousel-item.active { + display: block !important; + opacity: 1 !important; } -.role-icon { - font-size: 3rem; - color: var(--secondary-color); - margin-bottom: 20px; +/* Ensure captions are visible in RTL */ +[dir="rtl"] .carousel-caption { + right: 5% !important; + left: auto !important; + text-align: right !important; } -.role-title { - font-size: 1.5rem; - font-weight: 700; - color: var(--primary-color); -} - -.role-desc { - color: var(--text-muted); - margin-bottom: 25px; +.carousel-caption { + z-index: 10; } footer { background-color: var(--primary-color); color: var(--white); padding: 50px 0; -} - -/* RTL Adjustments */ -[lang="ar"] .ms-auto { - margin-right: auto !important; - margin-left: 0 !important; -} -/* Carousel transition speed */ -.carousel-item { - transition: transform 1.5s ease-in-out !important; } \ No newline at end of file diff --git a/staticfiles/css/custom.css b/staticfiles/css/custom.css index 92270ae..6171ce3 100644 --- a/staticfiles/css/custom.css +++ b/staticfiles/css/custom.css @@ -18,11 +18,6 @@ body { overflow-x: hidden; } -[lang="ar"] body { - direction: rtl; - text-align: right; -} - .navbar { background-color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); @@ -85,51 +80,29 @@ body { margin-bottom: 40px; } -.role-card { - background: var(--white); - padding: 40px; - border-radius: 20px; - box-shadow: 0 10px 30px rgba(0,0,0,0.05); - transition: all 0.3s ease; - border: 1px solid transparent; - height: 100%; - cursor: pointer; +/* Carousel Adjustments */ +.carousel-item { + transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out; } -.role-card:hover { - border-color: var(--secondary-color); - transform: translateY(-10px); +.carousel-item.active { + display: block !important; + opacity: 1 !important; } -.role-icon { - font-size: 3rem; - color: var(--secondary-color); - margin-bottom: 20px; +/* Ensure captions are visible in RTL */ +[dir="rtl"] .carousel-caption { + right: 5% !important; + left: auto !important; + text-align: right !important; } -.role-title { - font-size: 1.5rem; - font-weight: 700; - color: var(--primary-color); -} - -.role-desc { - color: var(--text-muted); - margin-bottom: 25px; +.carousel-caption { + z-index: 10; } footer { background-color: var(--primary-color); color: var(--white); padding: 50px 0; -} - -/* RTL Adjustments */ -[lang="ar"] .ms-auto { - margin-right: auto !important; - margin-left: 0 !important; -} -/* Carousel transition speed */ -.carousel-item { - transition: transform 1.5s ease-in-out !important; } \ No newline at end of file