/* General Styles */
:root {
    --primary-color: #f9fafc;
    --secondary-color: #bd9f3c;
    --third-color: #800000 ;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /*font-family: 'Libre Baskerville', Garamond, serif;*/
    font-family:'Poppins', sans-serif;
    padding-top: 0;
    margin-top: 0;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    max-width:100vw;
}

html{
    
    overflow-x:hidden;
}
/* Top Bar */
.top-bar {
    background-color: var(--third-color) !important;
    
}

.top-bar a:hover {
    opacity: 0.8;
}

/* Navigation */
.navbar-wrapper {
    position: relative;
    z-index: 1000;
}

.navbar {
    transition: all 0.3s ease;
    padding: 0;
    width: 100%;
    background-color: #800000  !important;
    position: fixed;
    top: 0;
    z-index: 1000;
    border-top: 12px solid #4a0000;
    border-bottom: 6px solid #ffffff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.logo-container {
    position: absolute !important;
    left: 0 !important;
    top: -12px !important;
    z-index: 1001;
    height: calc(100% + 18px) !important;
    /*width: 230px;*/
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-curved-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    /* Create a shape that's square at top and curved at bottom */
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: -1;
}

.navbar-brand {
    position: relative;
    z-index: 1002;
    /*padding: 80px 0 20px 0 !important;*/
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    padding: 0;
    max-width: 100%;
}

.navbar-nav .nav-link {
    color: var(--primary-color) !important;
    font-weight: 1000;
    padding: 1rem 1.2rem !important;
    transition: all 0.3s ease;
    font-size: 18px ;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #bd9f3c !important; 
}

/* Responsive Breakpoints */
/* Large Devices (Desktops) */
@media (min-width: 1200px) {
   /* .logo-container {
        left: 5% !important;
    }*/

    /*.navbar .container {
        padding-left: 320px; 
    }*/

    .navbar-nav .nav-link { 
        font-size: 15px;
        padding: 1rem 1.0rem !important;
    }
}

/* Medium Devices (Tablets) */
@media (min-width: 992px) and (max-width: 1199px) {
    /*.logo-container {
        left: 2% !important;
    }*/

    .navbar .container {
        padding-left: 280px;
    }

    .navbar-nav .nav-link {
        font-size: 13px;
        padding: 0.8rem 0.8rem !important;
    }
}

/* Collapsed Menu Styles (below 992px) */
@media (max-width: 991px) {
    .navbar {
        min-height: 70px;
        position: fixed;
    }

    .logo-container {
        left: 10px !important;
        width: 230px !important;
        height: calc(100% + 18px) !important;
    }

    .navbar .container {
        padding-left: 260px;
        padding-right: 70px;
        min-height: 70px;
    }

    .navbar-toggler {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1003;
        border-color: rgba(255,255,255,0.5);
        padding: 8px 12px;
    }

    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 24px;
        height: 24px;
    }

    .navbar-collapse {
        position: fixed;
        top: 88px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #800000;
        padding: 15px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 999;
        max-height: calc(100vh - 88px);
        overflow-y: auto;
        display: none;
    }

    .navbar-collapse.show {
        display: block;
    }

    .navbar-nav {
        width: 100%;
        flex-direction: column;
    }

    .navbar-nav .nav-link {
        font-size: 16px;
        padding: 0.75rem 1rem !important;
        text-align: left;
    }

    .dropdown-menu {
        background-color: #600000;
        position: static !important;
        width: 100%;
        border: none;
        box-shadow: none;
    }

    .dropdown-item {
        color: white;
    }
}

/* Desktop - show navbar normally */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none;
    }

    .navbar-collapse {
        display: flex !important;
    }
}

.navbar .container {
   /* padding-left: 300px;  Make space for the logo */
}

.navbar-toggler {
    z-index: 1003;
}

/* Make sure dropdown menus appear above the logo */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1005;
}

.dropdown-item:hover {
    background-color: var(--third-color) !important; 
    color: white;
}

/* Hero Slider */
/*.carousel-item {
    height: 70vh;
    min-height: 400px;
    margin-top: calc(10px + 2vw); 
}*/

.carousel-item img {
    
    height: 100%;
    /*width: 100%;*/
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: 10px;
    max-width: 90%;
    margin: 0 auto;
}

.carousel-caption h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.5;
}

/* Quick Links */
.quick-links .card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.quick-links .card:hover {
    transform: translateY(-10px);
}

.quick-links .card i {
    color: var(--primary-color);
}

/* Key Facts Section */ 
.section-heading-overlay {
    background-color: transparent;
    color: #800000;
    padding: 15px 30px;
    display: inline-block;
    margin-bottom: 3rem;
    font-size: 1.5rem !important;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    min-width: 300px;
    line-height:32px !important;
}

@media (min-width: 1200px) {
    .section-heading-overlay {
    background-color: transparent;
    color: #800000;
    padding: 15px 30px;
    display: inline-block;
    margin-bottom: 3rem;
    font-size: 1.5rem !important;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    min-width: 300px;
    line-height:32px !important;
}
}

/*.section-heading-overlay::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 29px solid transparent;
    border-bottom: 29px solid transparent;
    border-left: 20px solid #800000;
}*/

.key-facts {
    padding: 4rem 0;
    background-color: #f8f9fa;
    text-align: center;
}

.key-facts .container {
    max-width: 1400px;
}

/* Responsive heading styles */
@media (max-width: 768px) {
    .section-heading-overlay {
        font-size: 1.5rem;
        padding: 12px 25px;
        min-width: 250px;
    }
    
    .section-heading-overlay::after {
        border-top-width: 24px;
        border-bottom-width: 24px;
        border-left-width: 15px;
        right: -15px;
    }
}

@media (max-width: 576px) {
    .section-heading-overlay {
        font-size: 1.25rem;
        padding: 10px 20px;
        min-width: 200px;
    }
    
    .section-heading-overlay::after {
        border-top-width: 20px;
        border-bottom-width: 20px;
        border-left-width: 12px;
        right: -12px;
    }
}

.key-facts .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.key-facts .col-md-3 {
    display: flex;
    padding: 15px;
}

.fact-box {
    background: #800000;
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fact-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.fact-icon {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.fact-icon i {
    font-size: 3rem;
}

.fact-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    font-family: 'Arial', sans-serif;
    text-align: center;
    line-height: 1.2;
}

.fact-box h4 {
    font-size: 1rem;
    color: white;
    line-height: 1.4;
    margin: 0;
    font-weight: 600;
    text-align: center;
    min-height: 2.8em;
}

/* Responsive Styles */
@media (min-width: 1200px) {
    .fact-box {
        min-height: 250px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .fact-box {
        padding: 2rem 1.5rem;
        min-height: 280px;
    }
    
    .fact-icon i {
        font-size: 2.5rem;
    }
    
    .fact-number {
        font-size: 2.2rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .fact-box {
        padding: 1.8rem 1.2rem;
        min-height: 260px;
    }
    
    .fact-icon i {
        font-size: 2.2rem;
    }
    
    .fact-number {
        font-size: 2rem;
    }
    
    .fact-box h4 {
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    .key-facts .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .fact-box {
        padding: 1.5rem 1rem;
        margin-bottom: 0;
        min-height: 240px;
    }
    
    .fact-icon i {
        font-size: 2rem;
    }
    
    .fact-number {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .fact-box h4 {
        font-size: 0.85rem;
        min-height: auto;
    }
}

@media (max-width: 575px) {
    .key-facts .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .fact-box {
        min-height: auto;
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }
    
    .fact-icon {
        margin-bottom: 1rem;
    }
    
    .fact-box h4 {
        font-size: 0.9rem;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color) !important;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* RTL Support for Arabic */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .navbar-nav {
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] .dropdown-menu {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
        margin-top: 100px; /* More space for mobile logo */
    }

    .carousel-caption {
        padding: 1rem;
    }

    .carousel-caption h2 {
        font-size: 1.8rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
    }

    .navbar .container {
        padding-left: 15px; /* Reset padding on mobile */
    }

    .logo-container {
        position: relative;
        left: 0;
        width: 140px;
        height: 140px;
        margin: 0 auto;
        top: -40px;
    }

    .logo-curved-bg {
        border-radius: 0 0 15% 15%;
    }

    .logo-img {
        height: 150%;
    }

    .logo-curved-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    /* Create a shape that's square at top and curved at bottom */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: -1;}

    .navbar-brand {
        /* padding: 40px 0 10px 0 !important; */
        position: relative;
    z-index: 1002;
    /*padding: 80px 0 20px 0 !important;*/
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
       
    }
}

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Animations */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-left {
    animation: slideInFromLeft 0.5s ease-out;
}

.animate-right {
    animation: slideInFromRight 0.5s ease-out;
}

/* Container utilities */
.content-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 30px);
}

/* Spacing utilities */
.section-padding {
    padding: clamp(2rem, 5vw, 4rem) 0;
}

/* Typography utilities */
.responsive-text {
    font-size: clamp(14px, 2vw, 18px);
}

.responsive-heading {
    font-size: clamp(24px, 4vw, 36px);
}

/* Image utilities */
.responsive-image {
    max-width: 100%;
    height: auto;
}

#more {display: none;}


/* Style the tab */
.tab {
  overflow: hidden;
  /*border: 1px solid #ccc;*/
  background-color: #f1f1f1;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 50px;
  transition: 0.3s;
  font-size: 20px;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  /*border: 1px solid #ccc;*/
  border-top: none;
}

/* Custom Button Styles */
.btn-primary {
    background-color: #800000 !important;
    border-color: #800000 !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: #600000 !important;
    border-color: #600000 !important;
}

.btn-primary:focus,
.btn-primary:active {
    background-color: #600000 !important;
    border-color: #600000 !important;
}

/* Custom text color for maroon */
.text-maroon {
    color: #800000 !important;
}

/* Card title link styles */
.card-title a {
    color: #800000;
    text-decoration: none;
    font-weight: 600;
}

.card-title a:hover {
    color: #600000;
    text-decoration: underline;
}
