/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.logo .subtitle {
    font-size: 12px;
    color: #bdc3c7;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #3498db;
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero-content h2 {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.4;
}

/* Announcements Section */
.announcements {
    background-color: white;
    padding: 60px 0;
}

.announcements h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #2c3e50;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    background-color: #ddd;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.news-content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.fee-info {
    background-color: #ecf0f1;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.fee-info p {
    margin: 5px 0;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2980b9;
}

/* Management Section */
.management {
    background-color: #ecf0f1;
    padding: 60px 0;
}

.management h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #2c3e50;
}

.management-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.management-info,
.working-hours {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.management-info h3,
.working-hours h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.management-info p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table th,
.hours-table td {
    border: 1px solid #bdc3c7;
    padding: 12px;
    text-align: left;
}

.hours-table th {
    background-color: #34495e;
    color: white;
    font-weight: bold;
}

.hours-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Fees Section */
.fees {
    background-color: white;
    padding: 60px 0;
}

.fees h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #2c3e50;
}

.fee-query {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.query-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.fee-info-text {
    font-size: 14px;
    color: #555;
}

/* News Grid Section */
.news-grid-section {
    background-color: #f4f4f4;
    padding: 60px 0;
}

.news-grid-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #2c3e50;
}

.pagination {
    text-align: center;
}

.page-info {
    display: block;
    margin-bottom: 20px;
    color: #555;
    font-size: 14px;
}

.page-numbers {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 12px;
    background-color: white;
    color: #3498db;
    text-decoration: none;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #3498db;
    color: white;
}

.page-link.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

/* Contact Section */
.contact {
    background-color: white;
    padding: 60px 0;
}

.contact h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #2c3e50;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Login Section */
.login-section {
    background-color: #ecf0f1;
    padding: 60px 0;
}

.login-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #2c3e50;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-group.checkbox label {
    margin: 0;
    font-weight: normal;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #2980b9;
}

.forgot-links {
    margin-top: 20px;
    text-align: center;
}

.forgot-links a {
    display: block;
    color: #3498db;
    text-decoration: none;
    font-size: 12px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.forgot-links a:hover {
    color: #2980b9;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 40px 0;
    font-size: 14px;
}

.footer-content p {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header .container {
        gap: 15px;
    }

    .logo-text h1 {
        font-size: 24px;
    }

    .nav-menu ul {
        gap: 20px;
    }

    .management-content {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        width: 100%;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        background-color: rgba(0, 0, 0, 0.9);
        padding: 20px;
        border-radius: 4px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu ul.active {
        max-height: 500px;
    }

    .nav-menu ul li {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu ul li:last-child {
        border-bottom: none;
    }

    .hero-content h2 {
        font-size: 22px;
    }

    .management-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-numbers {
        gap: 5px;
    }

    .page-link {
        padding: 6px 10px;
        font-size: 12px;
    }

    .announcements h2,
    .management h2,
    .fees h2,
    .contact h2,
    .login-section h2,
    .news-grid-section h2 {
        font-size: 24px;
    }

    .logo-img {
        width: 50px;
        height: 50px;
    }

    .contact-content {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .office-info {
        flex: 1 !important;
        min-width: auto !important;
    }

    .contact-form {
        width: 100%;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
    }

    table {
        font-size: 12px;
    }

    .hours-table th,
    .hours-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .logo h1 {
        font-size: 18px;
    }

    .logo .subtitle {
        font-size: 11px;
    }

    .hero-content h2 {
        font-size: 18px;
        line-height: 1.3;
    }

    .hero {
        padding: 40px 15px;
    }

    .announcements h2,
    .management h2,
    .fees h2,
    .contact h2,
    .login-section h2,
    .news-grid-section h2 {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .container {
        padding: 0 15px;
    }

    .management-info,
    .working-hours {
        padding: 20px;
    }

    .management-info h3,
    .working-hours h3 {
        font-size: 18px;
    }

    .news-item {
        border-radius: 6px;
    }

    .news-image {
        height: 150px;
    }

    .news-content {
        padding: 15px;
    }

    .news-content h3 {
        font-size: 16px;
    }

    .news-content p {
        font-size: 13px;
    }

    .login-form {
        padding: 20px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea {
        padding: 8px;
        font-size: 14px;
    }

    .btn-submit {
        padding: 10px;
        font-size: 14px;
    }

    .footer {
        padding: 30px 15px;
        font-size: 12px;
    }

    .nav-menu ul {
        padding: 15px 10px;
    }

    .table-responsive {
        overflow-x: auto;
    }

    table {
        font-size: 11px;
        width: 100%;
    }

    .hours-table th,
    .hours-table td {
        padding: 6px;
    }

    .page-link {
        padding: 5px 8px;
        font-size: 11px;
    }
}
