* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Titillium Web', sans-serif;
}

body {
    background: url('../../res/img/backgrounds/bg7.png') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.program_header {
    background-color: #122348;
    border-radius: 5px;
    width: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    flex-grow: 1;
    animation: fadeSlideIn 1s ease-out forwards;
    opacity: 0;
    flex-direction: column;
}

.program_header h2 {
    font-size: 50px;
    font-family: 'Bree Serif', serif;
    letter-spacing: 5px;
    line-height: 1;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    color: white;
}

.program_description,
.gallery-dgw {
    background-color: rgba(255, 255, 255, 0.8);
    color: #122348;
    border-radius: 5px;
    padding: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    animation: fadeSlideIn 1s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
    width: 85%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
}

#img {
    background-color: rgba(255, 255, 255, 0.6);
    color: #122348;
    border-radius: 5px;
    width: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: justify;
    padding: 20px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    animation: fadeSlideIn 1s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
}



.program_description h3 {
    font-size: 30px;
    font-weight: bold;
}

/* Accordion */
.accordion {
    width: 85%;
    border-radius: 5px;
    margin: 20px auto;
    animation: fadeSlideIn 1s ease-out forwards;
    animation-delay: 1s;
    opacity: 0;
}

.accordion-item {
    border-bottom: 3px solid rgba(205, 168, 87, 0.8);
}

.accordion-header {
    background-color: rgba(255, 255, 255, 0.6);
    color: #122348;
    cursor: pointer;
    padding: 15px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 25px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 4px;
}

.accordion-header:hover {
    background-color: #122348;
    color: white;
}

.accordion-header.active {
    background-color: #122348 !important;
    color: white !important;
}

.accordion-header::before {
    content: "+";
    font-size: 18px;
    font-weight: bold;
    margin-right: 10px;
}

.accordion-header.active::before {
    content: "-";
}

.accordion-content {
    display: none;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.7);
}

.accordion-content ol,
.accordion-content ul,
.accordion-content p {
    display: block;
    padding: 10px 20px;
    color: #122348;
    text-decoration: none;
    font-size: 18px;
}

.accordion-content a:hover {
    text-decoration: underline;
    color: #cda757;
}


.buttons {
    font-family: 'Titillium Web', sans-serif;
    font-size: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 4px;
}

.buttons .btn {
    text-decoration: none;
    padding: 10px 60px;
    background-color: white;
    color: #122348;
    border-radius: 12px;
    transition: transform 0.2s ease;
    text-align: center;
}

.buttons .btn:hover {
    background-color: #122348;
    color: white;
    transform: scale(1.05);
}

@media screen and (max-width: 1024px) {
    .program_header h2 {
        font-size: 2.2rem;
        margin-top: 10px;
    }

    .program_description h3 {
        font-size: 1.5rem;
    }

    /* Accordion */
    .accordion-header {
        font-size: 1.5rem;
    }
}


@media screen and (max-width: 768px) {
    .program_header {
        display: block;
    }

    .program_header h2 {
        font-size: 1.5rem;
        margin-top: 10px;
    }

    .program_description h3 {
        font-size: 1.5rem;
    }

    /* Accordion */
    .accordion-header {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .program_header {
        display: block;
    }

    .program_header h2 {
        font-size: 1.5rem;
        margin-top: 10px;
    }

    .program_description h3 {
        font-size: 1.5rem;
    }

    /* Accordion */
    .accordion-header {
        font-size: 1.5rem;
    }
}

/* Grid container for DGW images */
.gallery-dgw .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 15px;
    justify-items: center;
    padding: 10px 0;
}

/* DGW images */
.DGW-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    background-color: #f9f9f9;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.DGW-img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.goals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    padding: 20px;
}

.goals h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.goals p {
    line-height: 1.6;
    font-size: 1rem;
    color: #333;
}

.goals img {
    width: 100%;
    max-width: 550px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Mobile view: stack text above image */
@media (max-width: 768px) {
    .goals {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .goals img {
        margin: 20px auto 0;
    }
}

.program_comp {
    padding-left: 8%;
    padding-right: 8%;
    padding-top: 2%;
    padding-bottom: 1%;
}

/* Base grid style */
.departments-grid {
    display: grid;
    gap: 25px;
    justify-content: center;
    margin-bottom: 40px;
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Department card styles */
.department-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 25px 20px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Logo */
.dept-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Headings */
.department-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.department-card h4 {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 6px;
    font-weight: 600;
}

/* Mission text */
.department-card p {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.4;
}

.department-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.department-card-link:hover .department-card {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .grid-4,
    .grid-3, 
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.program_description {
    padding: 20px;
    font-family: "Titillium Web", sans-serif;
    line-height: 1.7;
    font-size: 1.1rem;
    color: #122348;
}

#degree img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto 25px auto;
    border-radius: 8px;
}

.program_description img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 25px auto;
    border-radius: 8px;
}

/* Paragraph spacing */
.program_description p {
    margin-bottom: 18px;
    padding-left: 10%;
    padding-right: 10%;
}

/* Clickable links inside text */
.program_description a {
    color: #0e4da4;
    font-weight: 600;
    text-decoration: underline;
}

.program_description a:hover {
    color: #cda757;
    text-decoration: none;
}

/* Responsive text size */
@media (max-width: 768px) {
    .program_description {
        font-size: 1rem;
        padding: 15px;
    }
}
