  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin-top: 20px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

.prog-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.banner {
    width: 100%;
    height: auto;
    min-height: 400px;
    padding: 30px;
    background-color: transparent;
    border-radius: 25px;
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 24px -10px rgba(3, 24, 36, 0.3);
    margin-bottom: 50px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

@media (min-width: 992px) {
    .banner {
        flex-direction: row;
        height: 500px;
    }
}

.banner img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    margin-bottom: 30px;
}

@media (min-width: 992px) {
    .banner img {
        width: auto;
        height: 90%;
        margin-bottom: 0;
    }
}

.banner-text {
    text-align: center;
    width: 100%;
    padding: 20px;
}

@media (min-width: 992px) {
    .banner-text {
        text-align: left;
        width: 50%;
        padding: 0 40px;
    }
}

.banner-text h2 {
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #222;
}

@media (min-width: 768px) {
    .banner-text h2 {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
}

.button {
    width: 180px;
    height: 60px;
    border-radius: 45px;
    transition: all 0.4s ease;
    cursor: pointer;
    background: #780000;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-top: 20px;
}

.button:hover {
    background: #a50c16;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.details-container {
    margin: 50px 0;
    font-size: 1.1rem;
    text-align: justify;
    padding: 0 20px;
}

.details-container strong {
    color: #780000;
    font-weight: 600;
}

.prog-details {
    margin: 50px 0;
    font-size: 1.1rem;
    padding: 0 20px;
}

.prog-details ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.prog-details li {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
}

.prog-details strong {
    color: #780000;
    font-weight: 600;
    margin-right: 5px;
}

.entry {
    margin: 50px 0;
    font-size: 1.1rem;
    padding: 0 20px;
}

.entry strong {
    color: #780000;
    font-weight: 600;
}

.heading {
    font-size: 2rem;
    text-transform: uppercase;
    margin: 40px 0 20px;
    color: #222;
    position: relative;
    padding-bottom: 10px;
}

.heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: #780000;
    border-radius: 2px;
}

.list {
    margin-top: 20px;
}

.list ol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

.list li {
    background: #f8f9fa;
    padding: 15px 20px 15px 45px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    counter-increment: item;
}

.list li::before {
    content: counter(item);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #780000;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* RTL (Dhivehi) specific styles */
.text-end {
    text-align: right;
}

.text-end .heading::after {
    left: auto;
    right: 0;
}

/* RTL grid layout */
.text-end .list ol,
.text-end .prog-details ul {
    direction: rtl;
}

/* RTL list items */
.text-end .list li,
.text-end .prog-details li {
    direction: ltr;
    text-align: right;
    padding: 15px 45px 15px 20px;
}

/* RTL number positioning */
.text-end .list li::before {
    left: auto;
    right: 15px;
}

/* Faruma font for Dhivehi */
.faruma {
    font-family: 'Faruma', sans-serif;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.details-container, .prog-details, .entry {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes borderAnimation {
    from { width: 0 }
    to { width: 80px }
}

.heading::after {
    animation: borderAnimation 0.8s ease-out forwards;
}
