/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Global heading styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 600;
    line-height: 1.4;
}

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

/* Header Styles */
.header {
    background-color: #22c55e;
    color: white;
}

.header-top {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    font-size: 13px;
}

.header-info span {
    margin-right: 20px;
}

.header-info i {
    margin-right: 5px;
}

.header-main {
    padding: 0px 0;
    position: relative;
    overflow: hidden;
}

.header-main::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    padding: 20px 0px;
    display: flex;
    align-items: center;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.school-info h1 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.school-info h2 {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header-image {
    display: flex;
    flex-grow: 1;
    justify-content: center;
    flex-shrink: 0;
}

.header-image img {
   height: 120px;
    border-radius: 16px;
    display: block;

    /* hiệu ứng mờ dần 2 bên */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 6%,
        black 94%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 6%,
        black 94%,
        transparent 100%
    );
}

/* Navigation */
.navbar {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0;
    position: relative;
}

/* Mobile Menu Toggle - Hidden by default */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 18px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-link i {
    margin-right: 5px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 6px;
    overflow: hidden;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: #333 !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8fafc;
    color: #22c55e !important;
    transform: translateX(5px);
}

.dropdown-content a i {
    margin-right: 8px;
    width: 16px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: dropdownFade 0.3s ease-in-out;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* JavaScript controlled dropdown */
#tuyen-sinh {
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Disable hover effect for JS controlled dropdown */
#show-tuyen-sinh:hover + #tuyen-sinh,
.dropdown:has(#show-tuyen-sinh):hover .dropdown-content {
    display: none !important;
}

/* Main Content */
.main-content {
    padding: 20px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Left Content */
.left-content {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.left-content:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.featured-news {
    margin-bottom: 20px;
}

.featured-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Quick Links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    padding: 20px;
}

.quick-link-item {
    background-color: #f59e0b;
    color: white;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quick-link-item:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* News Sections */
.news-section {
    margin-bottom: 25px;
    padding: 0 20px;
}

/* Add smooth animations */
.news-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    position: relative;
}

.news-item a{
    text-decoration: none;
}

.news-item:hover {
    transform: translateY(-2px);
}

.news-item img {
    transition: transform 0.3s ease;
}

.news-item:hover img {
    transform: scale(1.05);
}

.section-title {
    background-color: #22c55e;
    color: white;
    padding: 12px 15px;
    margin: 0 -20px 15px -20px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Roboto', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    border-radius: 0 8px 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-title a {
    color: white;
    text-decoration: none;
    display: block;
    transition: opacity 0.3s ease;
}

.section-title a:hover {
    opacity: 0.9;
}

.section-title::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid #22c55e;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

.news-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-item img {
    width: 160px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-content h4 {
    font-size: 17px;
    font-weight: 600;
    font-family: 'Roboto', Arial, sans-serif;
    color: #1e40af;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-content h4:hover {
    color: #3b82f6;
}

.news-content p {
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.news-content ul {
    list-style: none;
    padding-left: 0;
}

.news-content ul li {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
    line-height: 1.5;
}

.news-content ul li::before {
    content: '•';
    color: #22c55e;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Website Stats */
.website-stats {
    padding: 0 20px 20px 20px;
}

.schools-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.schools-list ul {
    list-style: none;
}

.schools-list ul li {
    font-size: 14px;
    color: #1e40af;
    margin-bottom: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.schools-list ul li:hover {
    text-decoration: underline;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.sidebar-section:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.sidebar-title {
    background-color: #3b82f6;
    color: white;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Roboto', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: #f0f9ff;
    border-left: 3px solid #3b82f6;
    padding-left: 12px;
}

.video-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.video-item:last-child {
    border-bottom: none;
}

.video-item:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
}

.video-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.video-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.video-item h4 {
    font-size: 15px;
    font-weight: 600;
    font-family: 'Roboto', Arial, sans-serif;
    color: #1e40af;
    margin-bottom: 5px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.video-item h4:hover {
    color: #3b82f6;
}

.video-item p {
    font-size: 14px;
    color: #666;
}

.activity-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background-color: #f8fafc;
    transform: translateX(5px);
}

.activity-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.activity-item p {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.stats-item {
    padding: 15px;
}

.stats-item p {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.stats-item ul {
    list-style: none;
}

.stats-item ul li {
    font-size: 14px;
    color: #666;
    margin-bottom: 3px;
    padding-left: 10px;
    position: relative;
}

.stats-item ul li::before {
    content: '▪';
    color: #22c55e;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.access-stats {
    padding: 15px;
}

.access-stats p {
    font-size: 14px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.access-stats strong {
    color: #3b82f6;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: #22c55e;
    color: white;
    padding: 25px 0 15px 0;
    margin-top: 30px;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-left {
    flex: 1;
}

.footer-right {
    flex: 1;
    text-align: right;
}

.footer-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-title-mobile {
    display: none;
}

.footer-title-desktop {
    display: block;
}

.footer-info p {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-developer h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 500;
}

.footer-developer p {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.footer-developer p strong {
    font-size: 16px;
    color: #fef3c7;
    font-weight: 700;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-right {
        display: none;
    }
    
    .footer-left {
        width: 100%;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-title-desktop {
        display: none;
    }
    
    .footer-title-mobile {
        display: block;
        line-height: 1.3;
    }
}

/* Facebook Integration Styles */
.facebook-post {
    border-left: 3px solid #1877F2;
    background: linear-gradient(90deg, rgba(24, 119, 242, 0.05), transparent);
}

.facebook-post .news-content h4 a {
    color: #1877F2;
    text-decoration: none;
}

.facebook-post .news-content h4 a:hover {
    text-decoration: underline;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.social-stats {
    display: flex;
    gap: 10px;
}

.social-stats i {
    margin-right: 3px;
    color: #1877F2;
}

.post-excerpt {
    font-size: 13px;
    line-height: 1.4;
    color: #555;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    background: #1877F2;
    color: white !important;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.read-more:hover {
    background: #166fe5;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 30px 20px 20px;
}

.featured-news {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.featured-overlay h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.featured-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

.facebook-refresh-btn:hover {
    background: #166fe5 !important;
    transform: translateY(-2px);
}

.notification-item small {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

.sidebar-title.facebook-updated {
    background: linear-gradient(45deg, #228b22, #1877F2);
}

/* Loading states */
.loading-facebook {
    position: relative;
    opacity: 0.6;
}

.loading-facebook::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1877F2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Facebook post images */
.facebook-post img {
    border: 2px solid #e3f2fd;
    transition: border-color 0.3s;
}

.facebook-post:hover img {
    border-color: #1877F2;
}

/* Auto-update indicator */
.auto-update-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(24, 119, 242, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 1002;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.auto-update-indicator.show {
    display: block;
}

/* Responsive Design */
/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-image {
        display: none;
        order: -1;
    }
    
    .logo-section {
        order: 0;
        justify-content: center;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .school-info {
        display: block !important;
    }
    
    .school-info h1 {
        font-size: 14px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .school-info h2 {
        font-size: 16px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Navigation Mobile */
    .nav-menu {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 12px 8px;
        white-space: nowrap;
        min-width: 80px;
    }
    
    /* Dropdown Mobile */
    .dropdown:hover .dropdown-content {
        position: fixed;
        top: auto;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        z-index: 1000;
        background: white;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }
    
    .dropdown-content a {
        color: #333 !important;
        padding: 15px;
        font-size: 14px;
        border-bottom: 1px solid #eee;
    }
    
    .dropdown-content a:last-child {
        border-bottom: none;
    }
    
    .dropdown-content a:hover {
        background-color: #f8f9fa;
        color: #22c55e !important;
    }
    
    /* Featured Image */
    .featured-image {
        height: 200px;
        object-fit: cover;
    }
    
    .featured-overlay h2 {
        font-size: 18px;
    }
    
    .featured-overlay p {
        font-size: 14px;
    }
    
    /* Quick Links */
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .quick-link-item {
        font-size: 12px;
        padding: 12px 8px;
    }
    
    /* Sidebar */
    .sidebar {
        margin-top: 20px;
    }
    
    .sidebar-section {
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .news-content h4 {
        font-size: 15px;
    }
    
    .news-content p {
        font-size: 13px;
    }
    
    .news-content ul li {
        font-size: 12px;
    }
    
    .schools-list {
        grid-template-columns: 1fr;
    }
    
    .schools-list ul li {
        font-size: 12px;
    }
}

/* Mobile Responsive Design */
@media (max-width: 480px) {
    .mobile-menu-toggle {
        display: block !important;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .header-main {
        padding: 12px 0;
    }
    
    .header-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
    }
    
    .header-image {
        display: none !important;
        order: -1;
        margin-bottom: 10px;
    }
    
    .logo-section {
        justify-content: center !important;
        order: 0;
    }
    
    .logo {
        width: 45px;
        height: 45px;
        margin-right: 15px;
    }
    
    .school-info {
        display: block !important;
        text-align: center !important;
    }
    
    .school-info h1 {
        font-size: 12px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        line-height: 1.2 !important;
        margin-bottom: 2px !important;
    }
    
    .school-info h2 {
        font-size: 14px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        line-height: 1.2 !important;
    }
    /* Mobile Navigation */
    .nav-menu {
        flex-direction: column;
        background: rgba(30, 58, 138, 0.98);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        z-index: 999;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        border-radius: 0 0 8px 8px;
    }
    
    .nav-menu.mobile-active {
        display: flex !important;
    }
    
    .nav-menu li {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    /* Mobile Menu Order - TUYỂN SINH first for convenience */
    
    
    .nav-link {
        display: block;
        padding: 15px 20px;
        font-size: 14px;
        width: 100%;
        text-align: left;
        color: white !important;
    }
    
    /* Mobile Dropdown */
    .dropdown-content {
        position: static !important;
        display: none;
        background: rgba(24, 119, 242, 0.9) !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    
    .dropdown:hover .dropdown-content {
        display: block !important;
    }
    
    .dropdown-content a {
        color: white !important;
        padding: 12px 30px !important;
        font-size: 13px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .nav-menu.mobile-active {
        display: flex;
    }
    
    .nav-menu li {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 15px 20px;
        font-size: 14px;
        width: 100%;
        text-align: left;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 20px;
        cursor: pointer;
        padding: 10px;
        margin-left: auto;
    }
    
    /* Quick Links Mobile */
    .quick-links {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .quick-link-item {
        padding: 15px;
        font-size: 13px;
        text-align: center;
    }
    
    /* Featured Section */
    .featured-image {
        height: 150px;
    }
    
    .featured-overlay {
        padding: 15px;
    }
    
    .featured-overlay h2 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .featured-overlay p {
        font-size: 12px;
    }
    
    /* News Content */
    .news-item {
        flex-direction: column;
    }
    
    .news-item img {
        width: 100%;
        margin: 0 auto 15px auto;
    }
    
    .section-title {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    /* Sidebar Mobile */
    .notification-item {
        font-size: 12px;
        padding: 12px;
    }
    
    .sidebar-title {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .stats-item p {
        font-size: 13px;
    }
    
    .stats-item ul li {
        font-size: 12px;
    }
    
    .activity-item p {
        font-size: 12px;
    }
    
    .video-item h4 {
        font-size: 13px;
    }
    
    .video-item p {
        font-size: 11px;
    }
}

/* Demo Mode Styles */
.demo-post {
    border-left-color: #ff6b35 !important;
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.1), transparent);
}

.demo-post .section-title {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
}

.demo-post .read-more {
    background: #ff6b35 !important;
}

.demo-post .read-more:hover {
    background: #e55a00 !important;
}

.demo-warning a:hover {
    color: #fff !important;
    font-weight: bold;
}

/* Content Management System Styles */
.add-news-btn {
    background: none;
    border: none;
    color: white;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
    padding: 4px 8px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.add-news-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.news-actions {
    display: flex;
    gap: 5px;
}

.news-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    transition: all 0.3s;
}

.news-actions button:hover {
    background: #e0e0e0;
}

.delete-btn:hover {
    background: #ff4444 !important;
    color: white !important;
}

.news-date {
    display: flex;
    justify-content: right;
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    padding: 5px 0;
            position: absolute;
    right: 20px;
    bottom: -10px;
}
.news-date i {
    margin-right: 3px;
    color: #666;
    padding-top: 3px;
}
/* Modal Styles */
.modal {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    background: #1e3a8a;
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Form Styles */
.modal-content form {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.form-actions button[type="submit"] {
    background: #1e3a8a;
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: #1e40af;
}

.form-actions button[type="button"] {
    background: #6c757d;
    color: white;
}

.form-actions button[type="button"]:hover {
    background: #5a6268;
}

/* Admin Panel Styles */
.admin-panel {
    max-width: 600px;
}

.admin-content {
    padding: 20px;
}

.admin-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.admin-section:last-child {
    border-bottom: none;
}

.admin-section h4 {
    margin: 0 0 15px 0;
    color: #1e3a8a;
    font-size: 16px;
}

.quick-add-buttons,
.admin-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.quick-add-buttons button,
.admin-tools button {
    padding: 12px 16px;
    border: 1px solid #1e3a8a;
    background: white;
    color: #1e3a8a;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.quick-add-buttons button:hover,
.admin-tools button:hover {
    background: #1e3a8a;
    color: white;
}

.admin-section ol {
    margin: 0;
    padding-left: 20px;
}

.admin-section ol li {
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.4;
}

/* Admin Toggle Button */
.admin-toggle-btn:hover {
    background: #1e40af !important;
    transform: translateY(-2px);
}

/* Responsive Design for Admin */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .quick-add-buttons,
    .admin-tools {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .admin-toggle-btn {
        bottom: 160px !important;
        right: 10px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
}

/* ===============================
   Image Editor Styles
   =============================== */

/* Container cho header image với edit functionality */
.image-editor-container {
    position: relative;
    display: inline-block;
}

/* Style cho edit icon overlay */
.edit-icon-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-editor-container:hover .edit-icon-overlay {
    opacity: 1;
}

/* Button edit ảnh */
.edit-btn {
    background: rgba(34, 197, 94, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

.edit-btn:hover {
    background: rgba(34, 197, 94, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.edit-btn i {
    font-size: 14px;
}

/* Modal styles */
.image-edit-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.image-edit-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Modal header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-header h3 i {
    margin-right: 8px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Modal body */
.modal-body {
    padding: 25px;
}

.modal-body h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

/* Current image section */
.current-image-section {
    margin-bottom: 25px;
}

.current-image-preview {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #e0e0e0;
}

.current-image-preview img {
    max-width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Thông tin ảnh hiện tại */
.image-info {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #22c55e;
}

.image-info p {
    margin: 2px 0;
    color: #666;
}

.image-info i {
    color: #22c55e;
    margin-right: 5px;
}

/* Upload section */
.upload-section {
    margin-bottom: 15px;
}

.upload-area {
    border: 2px dashed #22c55e;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fff9;
}

.upload-area:hover {
    border-color: #16a34a;
    background: #f0fdf4;
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #16a34a;
    background: #dcfce7;
}

.upload-icon {
    font-size: 48px;
    color: #22c55e;
    margin-bottom: 15px;
}

.upload-area p {
    margin: 8px 0;
    color: #666;
}

.browse-text {
    color: #22c55e;
    font-weight: 600;
    text-decoration: underline;
}

.file-info {
    font-size: 12px;
    color: #999;
}

/* Image preview */
.image-preview {
    position: relative;
    text-align: center;
    margin-top: 15px;
}

.image-preview img {
    max-width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #22c55e;
}

.preview-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
}

.change-image-btn {
    background: rgba(34, 197, 94, 0.9);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.change-image-btn:hover {
    background: rgba(34, 197, 94, 1);
}

/* Modal footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.btn-cancel,
.btn-save,
.btn-reset {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn-cancel {
    background: #6b7280;
    color: white;
}

.btn-cancel:hover {
    background: #4b5563;
}

.btn-reset {
    background: #f59e0b;
    color: white;
}

.btn-reset:hover {
    background: #d97706;
}

.btn-save {
    background: #22c55e;
    color: white;
}

.btn-save:hover:not(:disabled) {
    background: #16a34a;
}

.btn-save:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .upload-area {
        padding: 20px 15px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
}

/* ===== REGISTRATION FORM STYLES ===== */
.registration-form {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-top: 4px solid #22c55e;
}

.form-section {
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #22c55e;
}

.form-section h3 {
    color: #22c55e;
    border-bottom: 2px solid #22c55e;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    font-size: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
    min-width: 250px;
}

.form-col-2 {
    flex: 2;
    min-width: 350px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.15s ease-in-out;
    background-color: #fff;
}

.form-control:focus {
    border-color: #22c55e;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.25);
    background-color: #f8fff9;
}

.form-control:hover {
    border-color: #16a34a;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

.note {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f9ff 100%);
    border-left: 4px solid #3b82f6;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.note p {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.6;
}

.note strong {
    color: #1e40af;
}

.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #fef3c7 100%);
    border-left: 4px solid #f59e0b;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.warning p {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.6;
}

.warning strong {
    color: #d97706;
}

.academic-year {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    transition: all 0.3s ease;
}

.academic-year:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #22c55e;
}

.academic-year h4 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.text-muted {
    color: #6c757d !important;
    font-size: 13px;
    font-style: italic;
    margin-top: 5px;
    display: block;
}

.btn-submit {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 5px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.btn-reset {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-reset:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
}

.submit-section {
    text-align: center;
    margin-top: 30px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    border-top: 2px solid #22c55e;
}

.page-header {
    text-align: center;
    margin: 30px 0;
}

.page-header h1 {
    color: #22c55e;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* Mobile responsive for forms */
/* Mobile Menu Toggle - Hidden by default */
.mobile-menu-toggle {
    display: none;
}

/* Registration Forms Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .registration-form {
        padding: 20px 15px;
        margin: 15px 0;
        border-radius: 8px;
    }
    
    .form-section {
        padding: 15px 12px;
        margin-bottom: 20px;
    }
    
    .form-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .page-header h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .page-header p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .academic-year {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .academic-year h4 {
        font-size: 14px;
    }
    
    .note, .warning {
        padding: 15px;
        margin: 15px 0;
    }
    
    .note p, .warning p {
        font-size: 13px;
    }
    
    .btn-submit, .btn-reset {
        width: 100%;
        margin: 8px 0;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .submit-section {
        padding: 20px;
        margin-top: 20px;
    }
}