/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: #2d3748;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #2d3748;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: #3182ce;
}

/* Hero Section */
.hero-section {
    color: #ffffff;
    padding: 4rem 0;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    position: relative;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Slideshow (for index.php) */
.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    width: 40%;
    height: 100%;
    transition: left 1s ease-in-out, transform 1s ease-in-out, z-index 0s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.slide.dimmed::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: background 1s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.slide:hover {
    cursor: pointer;
}

.slide:hover img {
    transform: scale(1.05);
}

/* Content Section */
.content-section {
    padding: 3rem 0;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.card h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.card p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card ul li {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}


/* Alerts */
.alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.alert-success {
    background-color: #28a745;
    color: white;
}

.alert-danger {
    background-color: #dc3545;
    color: white;
}

.alert.fade-out {
    opacity: 0;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.breadcrumbs a {
    color: #3182ce;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #2b6cb0;
}

.breadcrumbs span {
    color: #2d3748;
}

/* News Gallery */
.news-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.news-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-image img:hover {
    transform: scale(1.05);
}

/* News Content */
.news-content {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.news-content p {
    font-size: 1rem !important;
    color: #4a5568;
    margin-bottom: 1rem;
    position: unset !important;
    text-align: left !important;
}

.news-content .highlight {
    background: #f7fafc;
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.news-content .emoji {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.news-content .course-section {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin: 1.5rem 0 1rem;
}

.news-content .news-list {
    padding-left: 0;
    margin-bottom: 1rem;
}

.news-content .news-list li {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.news-content .checkmark {
    color: #3182ce;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.news-date {
    font-size: 0.9rem !important;
    color: #718096;
    text-align: right !important;
    margin-top: 1rem !important;
    position: unset;
    margin-bottom: 0px !important;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.news-item {
    border-radius: 8px;
    min-height: 350px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: scale(1.02);
}

.news-teg {
    font-size: 0.8rem;
    text-align: right;
    margin-top: 0;
    width: 100%;
    padding: 0.5rem;
}

.news-margin h3, .news-margin p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 80%;
}

.news-margin p {
    max-width: 70%;
    font-size: 0.9rem;
    font-weight: 300;
}

.news-margin p:nth-child(3) {
    margin: 0.5rem 0;
}

.news-a {
    margin-top: 1rem;
    text-align: right;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.document-item {
    display: flex;
    align-items: center;
    background: #f7fafc;
    border-radius: 8px;
    padding: 1rem;
    text-decoration: none;
    color: #2d3748;
    transition: background 0.3s ease;
}

.document-item:hover {
    background: #e6f0fa;
}

.document-icon {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
}

.document-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.document-info p {
    font-size: 0.9rem;
    color: #4a5568;
}

/* Document Preview */
.document-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.document-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.document-header p {
    font-size: 1rem;
    color: #4a5568;
}

.document-preview {
    display: flex;
    justify-content: center;
}

.document-image {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdf-iframe {
    width: 100%;
    height: 1030px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-icon {
    text-align: center;
}

.file-icon img {
    width: 100px;
    height: 100px;
}

.file-icon p {
    font-size: 1rem;
    color: #4a5568;
}

.document-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.form-ct {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: #f7fafc;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-group input::placeholder {
    color: #a0aec0;
}

/* Button */
.btn {
    display: inline-block;
    background: #3182ce;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
}

.btn:hover {
    background: #2b6cb0;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-secondary:hover {
    background: #cbd5e1;
    transform: translateY(-2px);
}

/* Error Message */
.error {
    color: #e53e3e;
    font-size: 1rem;
    text-align: center;
}

/* Footer */
.footer {
    background: #2d3748;
    color: #e2e8f0;
    padding: 2rem 0;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-map{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-text p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer p:last-child {
    margin-top: 1rem;
    font-size: 0.9rem;
}

#map {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .header {
        padding: 1rem 0;
    }

    .nav {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .card h2 {
        font-size: 1.5rem;
    }

    .news-grid, .documents-grid, .news-gallery {
        grid-template-columns: 1fr;
    }

    .news-image img {
        width: 250px;
        height: 250px;
    }

    .pdf-iframe {
        height: 400px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    #map {
        width: 100%;
        max-width: 300px;
    }

    .breadcrumbs {
        font-size: 0.8rem;
    }

    .contact-form {
        max-width: 100%;
    }
}

@media (max-width: 450px) {
    .logo {
        width: 100px;
    }

    .footer-content{
        grid-template-columns: auto !important;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .card {
        padding: 1.5rem;
    }

    .news-image img {
        width: 200px;
        height: 200px;
    }
}

.checkmark{
    margin-bottom: 0.5rem;
    color: #ffffff !important;
}