body {
    font-family: 'Amiri', serif !important;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    font-size: large;
    background-image: url(pexels-sora-shimazaki-5668473.png);
    background-size: cover;
    background-attachment: fixed;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #4682b4;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-header {
    display: flex;
    align-items: center;
    order: 1;
}

.nav-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 10px;
}

.nav-header span {
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

nav {
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;
    order: 2;
}

nav .nav-list {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav .nav-list li {
    margin: 0 15px;
}

nav a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 20px;
    transition: background-color 0.3s ease;
    border-radius: 6px;
    font-weight: 500;
    background-color: transparent;
    border: none;
}

nav a:hover {
    background-color: #00509e;
}

nav a.active {
    background-color: #00509e !important;
}

.marquee-container {
    width: 100%;
    padding: 8px 0;
    text-align: center;
    background-color: #e0f7fa;
    margin-top: 2px;
    opacity: 0.9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

marquee {
    display: block;
    font-weight: bold;
    color: #8b4513; 
    padding: 5px 0;
    margin: 2px;
}

main {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    flex-grow: 1;
    opacity: 0.9;
}

#ind {
    flex: 1;
    padding-right: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#ind:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Content area styles */
.content-area {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-height: 500px;
    direction: rtl;
    transition: all 0.3s ease;
}

.content-area:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.content-loading {
    text-align: center;
    padding: 80px 20px;
    color: #666;
    animation: fadeIn 0.5s ease-in;
}

.content-loading i {
    font-size: 3em;
    color: #4682b4;
    margin-bottom: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-link {
    cursor: pointer;
}

.nav-link.active {
    background-color: #00509e !important;
}

.nav-link {
    display: inline-block;
    padding: 10px !important;
    font-size: 1.1rem;           /* bigger text */
    font-weight: 600;            /* bolder */
    color: #f5f5f5 !important;   /* force white text */
    text-decoration: none;
    border-radius: 8px;          /* rounded links */
    background-color: transparent;
    transition: all 0.3s ease-in-out;
}

aside {
    width: 100px;
    background-color: #f4f4f4;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: auto;
}

footer {
    background-color: #4682b4;
    color: white;
    text-align: center;
    padding: 15px 0;
    width: 100%; 
    position: sticky; 
    bottom: 0; 
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

/* Bootstrap overrides and enhancements */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: #4682b4 !important;
    color: white !important;
    border-color: #4682b4;
    font-weight: 600;
}

.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #00509e;
}

.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    color: #4682b4;
    border-color: #dee2e6;
    transition: background-color 0.3s ease;
}

.pagination .page-item.active .page-link {
    background-color: white;
    color: #4682b4;
    border-color: #4682b4;
}

.pagination .page-link:hover {
    color: #00509e;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.6);
            backdrop-filter: blur(2px);
        }

       .modal-content {
  background-color: #fff;
  margin: 3% auto; /* smaller margin */
  padding: 0;
  border-radius: 12px;
  width: 90%;          /* wider */
  max-width: 1100px;   /* more room on big screens */
  height: 88vh;        /* taller */
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  position: relative;
}

        .modal-header {
            background-color: #4682b4;
            color: white;
            padding: 10px 15px;
            font-size: 18px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            font-weight: bold;
        }

        .close {
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }

        .close:hover {
            color: #ffdddd;
        }

       #previewFrame {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
}

        /* Content area styles */
        .content-area {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            padding: 20px;
            min-height: 500px;
            direction: rtl;
        }

        .content-loading {
            text-align: center;
            padding: 50px;
            color: #666;
        }

        .content-loading i {
            font-size: 2em;
            color: #4682b4;
            margin-bottom: 20px;
        }

        .nav-link {
            cursor: pointer;
        }

.nav-link.active {
    background-color: #00509e !important;
}

#contact-us {
    background-color: #f4f4f4;
    padding: 20px 0;
    border-top: 1px solid #ccc;
    margin-top: 40px;
}

#contact-us h3 {
  margin-bottom: 10px;
}

.cool-marquee-container {
  background: linear-gradient(to left, #1a73e8, #4682b4);
  color: white;
  padding: 10px;
  font-family: 'Amiri', serif;
  font-size: 1em;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.cool-marquee-container marquee {
  display: flex;
  gap: 40px;
}

.cool-marquee-container span {
  display: inline-block;
  white-space: nowrap;
  padding: 0 20px;
  font-weight: bold;
  font-size: 1.05em;
  letter-spacing: 0.5px;
}

.cool-marquee-container i {
  margin-left: 8px;
  color: #ffd700;
}
.styled-marquee {
  background: linear-gradient(to left, #004080, #0059b3);
  color: white;
  padding: 10px 15px;
  font-family: 'Amiri', serif;
  font-size: 1em;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.styled-marquee marquee {
  display: flex;
  gap: 40px;
  align-items: center;
}

.styled-marquee h2,
.styled-marquee span {
  white-space: nowrap;
  font-weight: bold;
  font-size: 1.05em;
  margin: 0 15px;
  color: white; /* This ensures text is white */
}

.styled-marquee i {
  margin-left: 8px;
  color: #ffd700;
}

#contact-us {
  width: 100%;
  background-color: #f4f4f4;
  padding: 20px 15px;
  box-sizing: border-box;
  display: flex;
  justify-content: center; /* center horizontally */
}

.contact-card {
  max-width: 600px;
  background: white;
  border-radius: 12px;
  padding: 20px 30px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  font-family: 'Amiri', serif;
  font-size: 1.1em;
  line-height: 1.5;
  color: #222;
  text-align: right;
  direction: rtl;
}

.contact-card p {
  margin: 8px 0;
}

.contact-card button {
  background-color: #1a73e8;
  color: white;
  border: none;
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Amiri', serif;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.contact-card button:hover {
  background-color: #135cb8;
}

/* Responsive for small devices */
@media (max-width: 480px) {
  .contact-card {
    padding: 15px 20px;
    font-size: 1em;
  }

  .contact-card button {
    width: 100%;
    padding: 10px;
  }
}

#contact-us {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background-color: #f9f9f9; /* or any bg you want */
  padding: 20px;
  min-height: 200px; /* adjust as needed */
}

.contact-card {
  flex-grow: 1;
}

#contact-us .copyright {
  bottom: 10px;
  right: 10px;
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* Responsive design */
@media (max-width: 1200px) {
    main {
        padding: 15px;
    }
    
    #ind {
        padding-right: 15px;
    }
}

@media (max-width: 992px) {
    .nav-header span {
        font-size: 20px;
    }
    
    nav a {
        padding: 10px 12px;
        font-size: 0.9em;
    }
    
    .marquee-container {
        padding: 6px 0;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .nav-header {
        order: 1;
    }
    
    nav {
        margin-top: 15px;
        justify-content: center;
        order: 2;
    }
    
    nav .nav-list {
        gap: 5px;
    }
    
    nav a {
        padding: 10px 12px;
        font-size: 0.9em;
    }
    
    .nav-header span {
        font-size: 18px;
    }
    
    .nav-header img {
        width: 35px;
        height: 35px;
    }
    
    main {
        padding: 15px;
    }
    
    #ind {
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .content-area {
        padding: 15px;
        min-height: 400px;
    }
    
    .content-loading {
        padding: 60px 15px;
    }
    
    .content-loading i {
        font-size: 2.5em;
    }
    
    .marquee-container {
        padding: 5px 0;
    }
    
    marquee {
        font-size: 0.9em;
    }
}

@media (max-width: 576px) {
    header {
        padding: 10px 15px;
    }
    
    .nav-header span {
        font-size: 16px;
    }
    
    .nav-header img {
        width: 30px;
        height: 30px;
    }
    
    nav a {
        padding: 8px 10px;
        font-size: 0.85em;
    }
    
    main {
        padding: 10px;
    }
    
    .content-area {
        padding: 10px;
        min-height: 350px;
    }
    
    .content-loading {
        padding: 40px 10px;
    }
    
    .content-loading i {
        font-size: 2em;
    }
    
    .marquee-container {
        padding: 4px 0;
    }
    
    marquee {
        font-size: 0.8em;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination .page-item {
        margin: 2px;
    }
    
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .nav-header span {
        font-size: 14px;
    }
    
    nav a {
        padding: 6px 8px;
        font-size: 0.8em;
    }
    
    .content-area {
        padding: 8px;
        min-height: 300px;
    }
    
    .content-loading {
        padding: 30px 8px;
    }
    
    .content-loading i {
        font-size: 1.8em;
    }
}