/* ===============================
   GLOBAL STYLES
================================= */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}

/* ===============================
   HERO SECTION
================================= */
.course-hero {
    position: relative;
    background: url('/directorate/assets/images/bannerslider.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 30px;
}

.course-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(16, 32, 57, 0.85); /* dark overlay */
}

.course-hero .hero-content {
    position: relative;
    z-index: 2;
}

.course-hero h1 {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: linear-gradient(135deg, #f6d365, #fda085);
}

.course-hero p {
    font-size: 16px;
    font-weight: 400;
}

/* ===============================
   SECTION TITLES
================================= */
.section-padding {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 24px;
    color: #102039;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #f6d365, #fda085);
    display: block;
    margin: 10px auto 0;
    border-radius: 2px;
}

.bg-light-gray {
    background-color: #f9f9fa;
}

/* ===============================
   COURSE CARDS
================================= */
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start !important;
}

.course-card-modern {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.3s ease;
    justify-content: space-between;
    border-top: 4px solid #102039;
}

.course-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.12);
    border-top-color: linear-gradient(135deg, #f6d365, #fda085);
}

/* Badge */
.badge-duration {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #eef1f5;
    color: #102039;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Card Header */
.course-card-modern .card-header {
    padding: 0;
    margin-bottom: 10px;
    background: transparent;
    border: none;
}

.course-card-modern .card-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: #102039;
    line-height: 1.4;
    padding-right: 40px;
}

/* Card Body */
.course-card-modern .card-body {
    padding: 0;
    flex-grow: 1;
}

.course-card-modern .card-body p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

/* Card Footer */
.card-footer-custom {
    margin-top: auto;
}

/* Fee Highlight */
.fee-highlight {
    font-size: 18px;
    font-weight: 700;
    color: #102039;
}


/* ===============================
   TABLE STYLING
================================= */
.fee-table-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.table-modern {
    margin-bottom: 0;
}

.table-modern thead th {
    background: #f5f5f5;
    color: #333;
    font-weight: 700;
    font-size: 13px;
    padding: 12px;
    border-bottom: 2px solid #ddd;
}

.table-modern tbody td {
    padding: 12px;
    font-size: 14px;
    color: #444;
    border-top: 1px solid #eee;
}

.table-modern tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.table-modern .total-row td {
    font-weight: 700;
    color: #102039;
}

/* ===============================
   OUTCOMES SECTION
================================= */
.outcomes-wrapper {
    background: #fff;
    border: 1px solid #ddd;
    padding: 25px;
    border-radius: 6px;
}

.outcomes-list {
    list-style: none;
    padding: 0;
}

.outcomes-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

.outcomes-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: linear-gradient(135deg, #f6d365, #fda085);
    font-weight: bold;
}

/* ===============================
   GALLERY
================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: 6px;
    overflow: hidden;
    height: 180px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===============================
   FAQ SECTION
================================= */
.faq-container {
    max-width: 800px;
    margin: auto;
}

.faq-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.faq-question {
    padding: 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    background: #fff;
    display: flex;
    justify-content: space-between;
}

.faq-question.active {
    background: #102039;
    color: #fff;
}

.faq-answer {
    display: none;
    padding: 15px;
    font-size: 14px;
    background: #fafafa;
}

.faq-answer.show {
    display: block;
}

/* ===============================
   CTA SECTION
================================= */
.cta-section {
    background: linear-gradient(135deg, #f6d365, #fda085);
    color: #111;
    padding: 20px 20px;
    text-align: center;
    border-radius: 10px;
}

.cta-section h3 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 10px;
}

.cta-section p {
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* CTA Button */
.btn-cta {
    background: #102039;
    color: #fff;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover {
    background: #0b1726;
    color: #fff;
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 768px) {
    .course-hero h1 {
        font-size: 24px;
    }

    .course-hero p {
        font-size: 14px;
    }

    .section-title {
        font-size: 20px;
    }
}