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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #333;
}

/* Global Paragraph Styles */
p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

strong {
    color: #EB0505;
    font-weight: 700;
}

/* Navigation */
nav {
    background: linear-gradient(135deg, #EB0505 0%, #B20404 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin-bottom: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    background: url('/img/fabric.jpg') center/cover;
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero .content {
    z-index: 2;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #f8fafc;
}

.about-content {
    display: block;
}

.about h2 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: #EB0505;
    font-weight: 700;
}

.hero h1 {
    font-size: 2.5rem;
    text-shadow: 1px 1px #EB0505;
}

.about-image {
    width: 50%;
    height: auto;
    float: right;
    margin: 0 0 2rem 2rem;
    background: linear-gradient(135deg, #EB0505 0%, #C20303 100%);
    border-radius: 10px;
    object-fit: cover;
    min-height: 400px;
}

/* Departments Section */
.departments {
    padding: 6rem 0;
}

.departments > .container > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: #EB0505;
    margin-bottom: 2rem;
    font-weight: 700;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.department-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 5px solid #EB0505;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.department-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(235, 5, 5, 0.15);
}

.department-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.department-card h3 {
    font-size: 1.4rem;
    color: #EB0505;
    margin: 0;
    font-weight: 700;
}

.department-card p {
    font-size: 0.95rem;
}

.department-card p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #EB0505 0%, #B20404 100%);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* Lists */
ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

li:last-child {
    margin-bottom: 0;
}

/* Lists in content sections */
.about ul, .departments ul {
    padding-left: 1rem;
}

.about li, .departments li {
    position: relative;
    padding-left: 0.5rem;
}

.about li::before, .departments li::before {
    content: "•";
    color: #EB0505;
    font-weight: bold;
    position: absolute;
    left: -0.5rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #EB0505;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

td {
    font-size: 0.95rem;
}

tr:nth-child(even) {
    background-color: #f8fafc;
}

tr:hover {
    background-color: #f0f0f0;
}

/* Responsive */
@media (max-width: 768px) {

    table {
        background-color: transparent;
        box-shadow: none;
    }
    
    thead {
        display: none;
    }

    tbody,
    tr,
    td {
        display: block;
        width: 100%;
    }

    tr {
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 0.5rem;
    }

    tr:last-child {
        margin-bottom: 0;
    }

    td {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
        border: none;
        border-bottom: 1px solid #eee;
    }

    td:last-child {
        border-bottom: none;
    }

    td::before {
        content: attr(data-label);
        font-weight: 600;
        white-space: nowrap;
        margin-bottom: 0.25rem;
    }


    .hamburger {
        display: flex;
    }

    nav ul {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #EB0505 0%, #B20404 100%);
        flex-direction: column;
        gap: 1rem;
        font-size: 0.9rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }

    nav ul.active {
        max-height: 300px;
    }

    nav ul li {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul li a {
        display: block;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-text {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 300px;
        width: 100%;
        float: none;
        margin: 0 0 2rem 0;
    }

    .departments-grid {
        grid-template-columns: 1fr;
    }

    .about h2,
    .section-title {
        font-size: 2rem;
    }

    .department-card {
        padding: 2rem;
    }

    .about p {
        text-align: left;
    }

    .department-card p {
        text-align: left;
    }
}