* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
    padding-top: 94px; /* To account for fixed navbar */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Notification Bar */
.notification-bar {
    background: linear-gradient(135deg, #ffcc00 0%, #ffd633 100%);
    color: #1e4389;
    padding: 12px 0;
    text-align: center;
    position: fixed;
    top: 94px;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.notification-text {
    font-weight: 600;
    font-size: 1rem;
}

.notification-link {
    color: #1e4389;
    text-decoration: none;
    font-weight: 700;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    border-bottom: 1px dashed #1e4389;
}

.notification-link:hover {
    color: #000080;
    border-bottom: 1px solid #000080;
}

.close-notification {
    background: none;
    border: none;
    color: #1e4389;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 15px;
    transition: color 0.3s;
}

.close-notification:hover {
    color: #000080;
}

/* Navigation Bar */
.navbar {
    height: 94px;
    width: 100%;
    background-color: #FDFFF5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 0 20px;
}

.logo-container a {
    text-decoration: none;
    color: inherit;
}

.logo-div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.2rem;
    line-height: 1.2;
}

.time {
    font-weight: bold;
    color: #000080;
}

.time1 {
    font-size: 0.9rem;
    color: #000080;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #000080;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 15px;
    border-radius: 20px;
}

.nav-menu a:hover {
    background: #000080;
    color: #FDFFF5;
}

.toggle-btn {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #000080;
    margin: 3px 0;
    transition: 0.3s;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(30, 67, 137, 0.7), rgba(30, 67, 137, 0.7)), url(images/1756439626204.jpg) center/cover no-repeat;
    position: relative;
    color: white;
    text-align: center;
    padding: 100px 20px 80px;
    margin-bottom: 60px;
}

.page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* News Section */
.news-section {
    padding: 60px 0;
    background: white;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #1e4389;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: #ffcc00;
}

.news-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f5f7fa;
    border: 1px solid #e2e3f1;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn.active {
    background: #1e4389;
    color: white;
    border-color: #1e4389;
}

.filter-btn:hover:not(.active) {
    background: #e2e3f1;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.news-card {
    background: #f5f7fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 200px;
    background-color: #e2e3f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e4389;
    font-size: 3rem;
}

.news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.news-category {
    background: #ffcc00;
    color: #1e4389;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: #1e4389;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-excerpt {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1e4389;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.read-more:hover {
    color: #2c5cc0;
    gap: 8px;
}

/* Update Template Section */
.template-section {
    padding: 80px 0;
    background: #f5f7fa;
    border-top: 1px solid #e2e3f1;
}

.template-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #1e4389;
    margin-bottom: 30px;
    text-align: center;
}

.template-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
}

.template-info {
    background: #f0f7ff;
    border-left: 4px solid #1e4389;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 0 5px 5px 0;
}

.template-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #555;
}

.code-block {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.code-comment {
    color: #75715e;
}

.code-tag {
    color: #f92672;
}

.code-attr {
    color: #a6e22e;
}

.code-value {
    color: #e6db74;
}

.template-steps {
    list-style: none;
    margin-bottom: 25px;
}

.template-steps li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.template-steps li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: #1e4389;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Subscription Section */
.subscription-section {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.subscription-box {
    background: linear-gradient(135deg, #1e4389 0%, #2c5cc0 100%);
    border-radius: 10px;
    padding: 50px 40px;
    color: white;
    max-width: 700px;
    margin: 0 auto;
}

.subscription-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 15px;
}

.subscription-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.subscription-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.subscription-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.subscription-btn {
    background: #ffcc00;
    color: #1e4389;
    border: none;
    padding: 0 25px;
    border-radius: 0 5px 5px 0;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.subscription-btn:hover {
    background: #ffd633;
}

/* Footer */
footer {
    background: #000080;
    color: white;
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffcc00;
}

.footer-content p {
    margin-bottom: 10px;
}

.footer-content ul {
    list-style: none;
}

.footer-content ul li {
    margin-bottom: 10px;
}

.footer-content a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-content a:hover {
    color: #ffcc00;
}

.social-icon {
    display: flex;
    gap: 15px;
}

.social-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

.social-icon a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 900px) {
    .toggle-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 94px;
        flex-direction: column;
        background-color: #FDFFF5;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .subscription-form {
        flex-direction: column;
    }
    
    .subscription-input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .subscription-btn {
        border-radius: 5px;
        padding: 12px;
    }
}

@media (max-width: 600px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .notification-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .template-card {
        padding: 20px;
    }
    
    .code-block {
        padding: 15px;
        font-size: 0.8rem;
    }
}