/* Portal Berita SMAN 3 OKU - News Portal Style */
:root {
    --primary-color: #0d7a3e; /* Green Primary (from logo) */
    --secondary-color: #f7c81e; /* Yellow Accent (from logo) */
    --accent-color: #0d7a3e; /* Green Success */
    --text-color: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --background-color: #ffffff;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --hover-color: #065f30;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: 300;
font-family: "Poppins", sans-serif; 
}

body {
    background-color: var(--light-bg);
    background-image: linear-gradient(rgba(13, 122, 62, 0.03) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(13, 122, 62, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--hover-color) 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.school-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.school-info p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

.nav-section {
    display: flex;
    align-items: center;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav li {
    position: relative;
}

.nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 0;
    transition: var(--transition);
    display: block;
}

.nav a:hover,
.nav a.active {
    color: var(--secondary-color);
    text-shadow: 0 0 5px rgba(247, 200, 30, 0.3);
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    z-index: 1;
    padding: 10px 0;
    border-top: 3px solid var(--secondary-color);
}

.dropdown-content a {
    padding: 10px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    color: var(--text-color);
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 70vh;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.hero-overlay h2 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-align: center;
}

/* Hero Navigation */
.hero-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.hero-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.8);
}

.hero-dot.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Hero Navigation */
.hero-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background-color: var(--secondary-color);
}

/* Section Styles */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
    font-weight: 700;
}



.principal-welcome-section .section-title {
    color: white;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.principal-welcome-section .section-title::after {
    background: linear-gradient(90deg, white, var(--secondary-color));
}

/* Principal Welcome Section */
.principal-welcome-section {
    background: linear-gradient(rgba(0, 150, 50, 0.8), rgba(0, 130, 50, 0.7)), 
                radial-gradient(circle at 10px 10px, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
                radial-gradient(circle at 30px 30px, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-position: 0 0, 0 0, 20px 20px;
    padding: 40px 0;
    margin: 30px 0;
    width: 100%;
    text-align: center;
}

.principal-welcome-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.principal-welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.principal-image {
    text-align: center;
    margin-bottom: 20px;
}

.principal-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.principal-text {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    color: white;
    text-align: center;
}

.principal-text h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
}

.principal-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: white;
    white-space: pre-line;
    text-align: center;
}

/* News Portal Layout - Restored */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 40px;
}

.main-content {
    background-color: var(--background-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px 0 0;
    margin-bottom: 30px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Articles Section */
.articles-section {
    background: var(--background-color);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

/* Widgets Section */
.widgets-section {
    margin-bottom: 40px;
}

.widgets-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.widget {
    background: var(--background-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

/* News Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 0 30px;
    padding-top: 30px;
}

.principal-welcome-section .section-header {
    justify-content: center;
    padding-top: 0;
}

.section-title-news {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    padding-left: 15px;
    padding-bottom: 10px;
}

.section-title-news::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title-news::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--hover-color);
}

/* Article Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 30px 30px;
    margin-top: 20px;
}

.news-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    border-top: 3px solid var(--primary-color);
}

.news-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
    border-top-color: var(--secondary-color);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 5px 25px 5px 10px;
    border-radius: 20px;
    background-color: rgba(13, 122, 62, 0.1);
}

.read-more:hover {
    color: white;
    background-color: var(--primary-color);
    transform: translateX(5px);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--primary-color);
}

.widget-header {
    background: var(--primary-color);
    background-image: linear-gradient(90deg, var(--primary-color), var(--hover-color));
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.widget-content {
    padding: 20px;
}

/* Popular News Widget */
.popular-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.popular-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
}

.popular-content h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.popular-content a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.popular-content a:hover {
    color: var(--primary-color);
}

.popular-date {
    font-size: 12px;
    color: var(--text-lighter);
}

/* Quick Links Widget */
.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    border-bottom: 1px solid var(--border-color);
}

.quick-links li:last-child {
    border-bottom: none;
}

.quick-links a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-left: 15px;
}

.quick-links a::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 10px;
}

.quick-links a:hover {
    color: var(--primary-color);
    padding-left: 20px;
    background-color: rgba(13, 122, 62, 0.05);
}

/* Announcement Items */
.announcement-item {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.announcement-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.announcement-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.announcement-date {
    font-size: 12px;
    color: var(--text-lighter);
    margin-bottom: 5px;
}

.announcement-text {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Articles Page Grid */
.articles-page-grid {
    display: grid;
    gap: 25px;
    padding: 30px;
}

/* Article Card Horizontal */
.article-card-horizontal {
    display: grid;
    grid-template-columns: 250px 1fr;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--primary-color);
}

.article-card-horizontal:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
    border-left-color: var(--secondary-color);
}

.article-card-horizontal .article-image {
    height: 100%;
    max-height: 250px;
    object-fit: cover;
}

.article-card-horizontal .article-content {
    padding: 20px;
}

/* Profile Content */
.profile-content {
    background: white;
    background-image: linear-gradient(135deg, rgba(13, 122, 62, 0.05) 0%, rgba(13, 122, 62, 0.01) 100%);
    background-size: 20px 20px;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.profile-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.profile-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
}

/* Data Section */
.data-section {
    background: white;
    background-image: linear-gradient(135deg, rgba(13, 122, 62, 0.05) 0%, rgba(13, 122, 62, 0.01) 100%);
    background-size: 20px 20px;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.search-box {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    background: var(--primary-color);
    background-image: linear-gradient(90deg, var(--primary-color), var(--hover-color));
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 0 20px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-btn:hover {
    background: var(--hover-color);
    background-image: linear-gradient(90deg, var(--hover-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.data-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 15px;
    border-top: 3px solid var(--primary-color);
}

.data-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
    border-top-color: var(--secondary-color);
}

.data-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 20px auto;
    border: 3px solid var(--primary-color);
}

.data-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
    padding: 0 15px;
}

.data-card p {
    font-size: 14px;
    color: var(--text-light);
    padding: 0 15px;
}

/* Footer */
.footer {
    background: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--hover-color) 100%);
    color: white;
    padding: 50px 0 0;
    margin-top: 50px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.footer h3 {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.2rem;
}

.footer h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.9;
    font-size: 0.9rem;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.footer-nav li {
    margin-bottom: 5px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    opacity: 0.9;
    display: flex;
    align-items: center;
}

.footer-nav a::before {
    content: '›';
    margin-right: 5px;
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

.footer-nav a:hover {
    color: var(--secondary-color);
    opacity: 1;
    transform: translateX(5px);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding: 10px;
    border-radius: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    font-size: 14px;
}

/* Button Styles */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #e0b618;
}

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

/* Contact Page Styles */
.contact-section {
    background: white;
    background-image: linear-gradient(135deg, rgba(13, 122, 62, 0.05) 0%, rgba(13, 122, 62, 0.01) 100%);
    background-size: 20px 20px;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-info {
    line-height: 1.8;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-item {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    font-size: 20px;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

.contact-text {
    flex: 1;
}

.contact-text strong {
    display: block;
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: black;
    color: black;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.social-link:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow);
}

.contact-map {
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Media Queries */
@media (max-width: 1024px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
    
    .hero-content {
        padding: 0 20px;
        width: 80%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    /* Principal Welcome */
    .principal-welcome-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .principal-text {
        margin-top: 20px;
    }
    
    /* Widgets */
    .widgets-container {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-section {
        width: 100%;
        justify-content: space-between;
    }
    
    .school-info h1 {
        font-size: 1.3rem;
    }
    
    .school-info p {
        font-size: 0.8rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: var(--shadow);
        transition: var(--transition);
        z-index: 1000;
        padding: 20px;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav li {
        width: 100%;
    }
    
    .nav a {
        padding: 10px 15px;
        border-radius: var(--radius);
        color: var(--text-color);
    }
    
    .nav a:hover {
        background: rgba(13, 122, 62, 0.1);
        color: var(--primary-color);
    }
    
    .hero-carousel {
        height: 50vh;
    }
    
    .hero-overlay h2 {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 20px;
    }
    
    .sidebar {
        margin-top: 30px;
    }
    
    /* Footer */
    .footer-nav ul {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .school-info h1 {
        font-size: 1.2rem;
    }
    
    .featured-news {
        height: 300px;
    }
    
    .featured-overlay {
        padding: 15px;
    }
    
    .featured-title {
        font-size: 1.2rem;
    }
    
    .section-header {
        padding: 0 15px;
        padding-top: 20px;
    }
    
    .section-title-news {
        font-size: 1.3rem;
    }
    
    .news-grid {
        padding: 0 15px 15px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .widget-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .school-info h1 {
        font-size: 1rem;
    }
    
    .hero {
        height: 40vh;
    }
    
    .hero-overlay {
        padding: 15px;
    }
    
    .hero-overlay h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .principal-welcome {
        grid-template-columns: 1fr;
    }
    
    .principal-photo img {
        width: 150px;
        height: 150px;
    }
    
    .profile-content,
    .data-section {
        padding: 20px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-content {
        padding: 15px;
    }
}