.navbar-brand .brand-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #D4AF37;
}

.navbar-brand .brand-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #fff;
    display: block;
    margin-top: -5px;
}

.btn-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #B8962E 100%);
    color: #800000;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #B8962E 0%, #D4AF37 100%);
    color: #800000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.glass-navbar {
    background: rgba(128, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

.glass-navbar.has-newsline {
    top: 40px;
}

.newsline-ticker {
    background: linear-gradient(90deg, #800000 0%, #6b0000 100%);
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.newsline-label {
    background: #D4AF37;
    color: #800000;
    height: 100%;
    padding: 0 15px;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    z-index: 1;
}

.newsline-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

.newsline-track {
    display: flex;
    white-space: nowrap;
    animation: newsline-scroll 90s linear infinite;
}

.newsline-item {
    color: #fff;
    text-decoration: none;
    padding: 0 30px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.newsline-item::after {
    content: "•";
    color: #D4AF37;
    margin-left: 30px;
    font-size: 1.5rem;
}

.newsline-item:hover {
    color: #D4AF37;
    text-decoration: underline;
}

@keyframes newsline-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.navbar .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #fff !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: #D4AF37 !important;
}

.dropdown-menu {
    background: rgba(128, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
}

.dropdown-item {
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37 !important;
}

.dropdown-header {
    color: #00BCD4 !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem 0.25rem;
    border-bottom: 1px solid rgba(0, 188, 212, 0.2);
    margin-bottom: 0.25rem;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #D4AF37;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #800000);
}

.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin-top: 40px;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    overflow: hidden;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.9) 0%, rgba(80, 0, 0, 0.7) 50%, rgba(212, 175, 55, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #D4AF37;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero-content .subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-top: 1rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-content .motto {
    font-style: italic;
    font-size: 1.5rem;
    margin-top: 1rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-content .cta-buttons {
    margin-top: 2rem;
    animation: fadeInUp 1s ease 0.9s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    padding: 80px 0;
    position: relative;
}

.welcome-section {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.principal-section {
    background: linear-gradient(135deg, #800000 0%, #600000 100%);
    color: #fff;
}

.principal-section h2 {
    color: #D4AF37;
}

.news-ticker {
    background: #800000;
    padding: 15px 0;
    overflow: hidden;
    position: relative;
}

.news-ticker-label {
    background: #D4AF37;
    color: #800000;
    padding: 5px 15px;
    font-weight: 600;
    display: inline-block;
    margin-right: 20px;
}

.news-ticker-content {
    display: inline-block;
    animation: ticker 20s linear infinite;
}

.news-ticker a {
    color: #fff;
    text-decoration: none;
    margin-right: 50px;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.timeline-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.timeline {
    position: relative;
    padding: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #800000, #D4AF37);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #D4AF37;
    border: 3px solid #800000;
    border-radius: 50%;
    z-index: 10;
}

.events-section {
    background: #f8f9fa;
}

.event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.event-card:hover .event-image {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.event-card .event-image {
    width: 100%;
    object-fit: contain;
    object-position: center top;
    display: block;
}

.event-card .event-date {
    background: #800000;
    color: #fff;
    padding: 5px 15px;
    font-weight: 600;
}

.life-section {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.life-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.life-card .icon {
    font-size: 3rem;
    color: #D4AF37;
    margin-bottom: 15px;
}

.gallery-section {
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(128, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.cta-section {
    background: linear-gradient(135deg, #800000 0%, #600000 100%);
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    color: #D4AF37;
    margin-bottom: 1rem;
}

.footer-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-brand h4 {
    font-family: 'Cinzel', serif;
    color: #D4AF37;
    font-size: 1.8rem;
}

.footer-brand h5 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    margin-top: -5px;
}

.footer-brand .motto {
    font-style: italic;
    color: #D4AF37;
    margin-top: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #D4AF37;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #D4AF37;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #D4AF37;
    color: #800000;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
}

.footer-bottom a {
    color: #D4AF37;
    text-decoration: none;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.back-to-top .btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode {
    background: #121212;
    color: #e0e0e0;
}

body.dark-mode .glass-navbar {
    background: rgba(30, 30, 30, 0.95) !important;
}

.page-banner {
    background: linear-gradient(135deg, #800000 0%, #600000 100%);
    padding: 120px 0 35px;
    color: #fff;
}

.page-banner h1 {
    color: #D4AF37;
}

.content-page {
    padding: 60px 0;
}

.content-page img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
.timeline::before {
        left: 20px;
    }
}

/* Notice styles */
.notice-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
}

.notice-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.notice-important-badge {
    background: #D4AF37;
    color: #800000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
margin-bottom: 15px;
}
    
.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.news-card .news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card .news-content {
    padding: 15px;
}

.news-card .news-date {
    font-size: 0.85rem;
    color: #888;
    display: block;
    margin-bottom: 5px;
}

.news-card h5 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.news-card .read-more {
    color: #800000;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.news-card .read-more:hover {
    color: #D4AF37;
}

.news-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.news-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.news-scroll-container::-webkit-scrollbar-track {
    background: #ddd;
    border-radius: 4px;
}

.news-scroll-container::-webkit-scrollbar-thumb {
    background: #800000;
    border-radius: 4px;
}

.news-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
}

.news-scroll-item {
    flex: 0 0 300px;
    max-width: 300px;
}

.news-scroll-item .news-card {
    height: 100%;
}

.horizontal-scroll-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 50px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-track {
    background: #ddd;
    border-radius: 4px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 4px;
}

.horizontal-scroll-wrapper > div {
    flex: 0 0 280px;
    max-width: 280px;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
}

.horizontal-scroll-wrapper > div img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
}

.horizontal-scroll-wrapper > div h6 {
    margin: 10px 0 5px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    line-height: 1.3;
    height: 36px;
    overflow: hidden;
}

.horizontal-scroll-wrapper > div p {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.horizontal-scroll-wrapper > div a {
    color: #800000;
    font-weight: bold;
    font-size: 13px;
    text-decoration: none;
}

.horizontal-scroll-wrapper > div a:hover {
    text-decoration: underline;
}

.scroll-item-title {
    margin-top: 5px;
}

.deco-news-link {
    color: #D4AF37;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
}

.deco-news-link:hover {
    text-decoration: underline;
    color: #fff;
}

.news-and-event-container {
    max-width: 1400px;
    margin: 0 auto;
}

.timeline-item::before {
    left: 20px;
}

.smart-edu-section {
    background: linear-gradient(135deg, #800000 0%, #4a0000 100%);
    color: #fff;
}

.smart-edu-section .section-title {
    color: #D4AF37;
}

.smart-edu-section .section-title::after {
    background: linear-gradient(90deg, #D4AF37, #fff);
}

.smart-edu-section .lead {
    color: rgba(255,255,255,0.85);
}

.smart-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 16px;
    padding: 40px 35px;
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
}

.smart-card:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-5px);
    border-color: #D4AF37;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.smart-card .smart-icon {
    font-size: 3.5rem;
    color: #D4AF37;
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(212,175,55,0.15);
    width: 90px;
    height: 90px;
    line-height: 90px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.smart-card:hover .smart-icon {
    background: #D4AF37;
    color: #800000;
    transform: scale(1.1);
}

.smart-card h4 {
    color: #D4AF37;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 15px;
}

.smart-card p {
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 20px;
}

.smart-card .features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    text-align: left;
}

.smart-card .features-list li {
    padding: 8px 0;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 10px;
}

.smart-card .features-list li i {
    color: #D4AF37;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.smart-card .btn-gold {
    display: inline-block;
}

.life-card-img {
    background-size: cover;
    background-position: center;
    color: #fff !important;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.life-card-img h4 { color: #D4AF37 !important; }
.life-card-img p { color: rgba(255,255,255,0.9) !important; }
.life-card-img .icon { color: #D4AF37 !important; }

.life-gallery-section {
    background: #f8f9fa;
}

.life-gallery-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.moment-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.moment-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.moment-card:hover img {
    transform: scale(1.1);
}

.moment-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 40px 15px 15px;
    text-align: center;
}

.moment-overlay span {
    color: #D4AF37;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
