/* Custom CSS untuk SMPN 3 Wadaslintang */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    padding-top: 76px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Fix mobile centering issues */
.container {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile responsiveness fixes */
@media (max-width: 767.98px) {
    body {
        padding-top: 70px;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    /* Ensure text centering */
    .text-center {
        text-align: center !important;
    }
    
    /* Fix for cards and content */
    .card, .news-card, .principal-welcome-card {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
}

/* Hero Section - Clean & Professional */
.hero-section {
    background: linear-gradient(135deg, 
        rgba(13, 110, 253, 0.95) 0%, 
        rgba(33, 37, 41, 0.9) 100%
    );
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Simple Pattern Overlay */
.hero-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 24%, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.05) 26%, transparent 27%, transparent 74%, rgba(255,255,255,0.05) 75%, rgba(255,255,255,0.05) 76%, transparent 77%, transparent),
        linear-gradient(-45deg, transparent 24%, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.05) 26%, transparent 27%, transparent 74%, rgba(255,255,255,0.05) 75%, rgba(255,255,255,0.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    opacity: 0.3;
}

/* Hero Content */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
}

/* Welcome Text */
.welcome-text {
    margin-bottom: 1rem;
}

.welcome-label {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Hero Title - Clean Typography */
.hero-main-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.school-name {
    display: block;
    font-size: 4.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
}

.school-location {
    display: block;
    font-size: 3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
}

/* Simple Divider */
.hero-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    border-radius: 2px;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.7;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    max-width: 800px;
    margin: 0 auto;
}

/* Clean Button Design */
.btn-hero-primary {
    background: #ffffff;
    border: none;
    color: #0d6efd;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #0d6efd;
}

.btn-hero-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
    color: white;
}

/* Stats Section - Clean Design */
.stat-item {
    text-align: center;
    margin: 0 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Scroll Down Button */
.scroll-down-section {
    text-align: center;
    margin-top: 3rem;
}

.scroll-down-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 1rem;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.scroll-down-btn:hover {
    transform: translateY(-5px);
}

.scroll-down-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scroll-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    position: relative;
    width: 2px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8));
    border-radius: 1px;
    animation: scrollLine 2s ease-in-out infinite;
}

.arrow-head {
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
    margin-top: -4px;
    animation: scrollArrow 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

@keyframes scrollLine {
    0%, 100% { 
        height: 30px;
        opacity: 0.6;
    }
    50% { 
        height: 40px;
        opacity: 1;
    }
}

@keyframes scrollArrow {
    0%, 100% { 
        transform: rotate(45deg) translateY(0px);
        opacity: 0.6;
    }
    50% { 
        transform: rotate(45deg) translateY(5px);
        opacity: 1;
    }
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-content {
    padding-right: 2rem;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 10s linear infinite;
    z-index: 1;
}

@keyframes sparkle {
    from { background-position: 0 0; }
    to { background-position: 200px 100px; }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/latarbelakanghome.jpeg') center/cover;
    opacity: 1;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.7), rgba(0, 86, 179, 0.7));
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 4;
}

/* Hero Info Card */
.hero-image-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

/* Responsive Design - Enhanced Hero Section */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
        min-height: 80vh;
    }
    
    .hero-content {
        padding: 20px 15px;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem !important;
        line-height: 1.4;
        margin-bottom: 1.5rem;
        padding: 0 10px;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    .hero-content .lead {
        font-size: 1rem !important;
        margin-bottom: 2rem;
        padding: 0 15px;
        line-height: 1.6;
    }
    
    .hero-image-placeholder {
        min-height: 200px;
    }
    
    .min-vh-75 {
        min-height: auto;
    }
    
    /* Hero buttons responsive */
    .hero-content .btn {
        font-size: 0.9rem;
        padding: 12px 20px;
        margin-bottom: 0.75rem;
        min-width: 180px;
    }
    
    .hero-content .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 40px 0;
        min-height: 75vh;
    }
    
    .hero-content {
        padding: 15px 10px;
    }
    
    .hero-content h1 {
        font-size: 1.4rem !important;
        line-height: 1.5;
        margin-bottom: 1rem;
        padding: 0 5px;
        /* Split long title into multiple lines */
        word-spacing: 0.1em;
    }
    
    .hero-content .lead {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem;
        padding: 0 10px;
        line-height: 1.7;
    }
    
    .hero-content .btn {
        font-size: 0.85rem;
        padding: 10px 16px;
        min-width: 160px;
    }
    
    /* Ensure no horizontal scroll */
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background: var(--primary-color);
    color: white;
    border-radius: 0.375rem 0.375rem 0 0 !important;
}

/* Statistics Cards Enhanced */
.stat-card {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Info Cards */
.info-card {
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card .info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Featured Gallery */
.featured-gallery {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
}

.featured-content h4 {
    margin-bottom: 0.5rem;
}

.placeholder-gallery {
    background: #f8f9fa;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 1rem;
    border: 2px dashed #dee2e6;
}

/* Gallery Sidebar */
.gallery-sidebar {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    height: fit-content;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
    text-decoration: none;
}

.category-item i {
    width: 20px;
    margin-right: 0.75rem;
}

.category-item span {
    flex: 1;
    font-weight: 500;
}

.category-item small {
    font-size: 0.75rem;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    margin-bottom: 1rem;
}

.news-title {
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Achievement Cards Enhanced */
.achievement-card {
    background: white;
    border-radius: 1rem;
    padding: 0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.achievement-header {
    background: linear-gradient(135deg, #ffc107, #ff8500);
    padding: 2rem 1.5rem 1rem;
    text-align: center;
    position: relative;
}

.achievement-icon {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.achievement-rank {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.rank-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-weight: bold;
    font-size: 0.875rem;
}

.achievement-content {
    padding: 1.5rem;
}

.achievement-title {
    margin-bottom: 1rem;
    color: var(--dark-color);
    line-height: 1.3;
}

.achievement-details {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.achievement-date {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.achievement-description {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin: 0;
}

/* ===== NEW ANIMATIONS CSS ===== */

/* Floating Animation */
@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-element {
    animation: floating 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Ripple Effect */
@keyframes ripple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* Typing Effect */
.typing-text {
    display: inline-block;
    border-right: 2px solid #0d6efd;
    white-space: nowrap;
    overflow: hidden;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d6efd, #0056b3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    color: white;
}

.school-logo {
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.loader-text h4 {
    margin-bottom: 1rem;
    font-weight: bold;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    animation: loading-bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loading-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Parallax Elements */
.parallax-element {
    will-change: transform;
}

/* Enhanced Hover Effects */
.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.achievement-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.info-card:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Gallery Item Enhancements */
.gallery-item:hover {
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.featured-gallery:hover .featured-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

/* Navbar Enhancements */
.navbar.scrolled {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

/* Category Items Animation */
.category-item {
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-item:hover::before {
    left: 100%;
}

/* Text Glow Effect */
.glow-text {
    text-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
    transition: text-shadow 0.3s ease;
}

.glow-text:hover {
    text-shadow: 0 0 20px rgba(13, 110, 253, 0.8);
}

/* Floating Icons */
.floating-icon {
    animation: floating 4s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

/* Smooth Transitions */
* {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-skeleton 1.5s infinite;
}

@keyframes loading-skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Entrance Animations */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.8); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

/* News & Announcements */
.news-item {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.news-date {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* Achievement Cards */
.achievement-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.achievement-icon {
    font-size: 3rem;
    color: var(--warning-color);
    margin-bottom: 1rem;
}

/* Forms */
.form-control {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    border-color: #ffd700;
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #ffd700 !important;
}

.navbar-nav .nav-link.active {
    color: #ffd700 !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #ffd700;
    border-radius: 1px;
}

.dropdown-item.active {
    background-color: #0d6efd !important;
    color: white !important;
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

/* Statistics Cards */
.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 3rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

.stat-content .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.stat-content .stat-label {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Visitor Statistics Cards */
.visitor-stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.visitor-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #6f42c1);
}

.visitor-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.visitor-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.visitor-content .visitor-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
    animation: countUp 1s ease-out;
}

.visitor-content .visitor-label {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
    margin: 0;
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Realtime Update Animation */
.visitor-number.updating {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

footer a {
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--warning-color) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .stat-card .stat-number {
        font-size: 2rem;
    }
    
    body {
        padding-top: 60px;
    }
}

/* Admin Panel Styles */
.admin-sidebar {
    background: var(--dark-color);
    min-height: calc(100vh - 56px);
}

.admin-sidebar .nav-link {
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

.admin-content {
    background: var(--light-color);
    min-height: calc(100vh - 56px);
    padding: 2rem;
}

/* Tables */
.table {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.table th {
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 500;
}

/* Pagination */
.pagination .page-link {
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.pagination .page-link:hover,
.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-left: 4rem;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Principal Section */
.principal-photo-container {
    text-align: center;
}

.principal-photo {
    position: relative;
    display: inline-block;
}

.principal-photo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.1;
}

.principal-message {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary-color);
}

.principal-message h2 {
    color: var(--primary-color);
    position: relative;
}

.principal-message h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.message-content p {
    text-align: justify;
    line-height: 1.8;
    color: #555;
}

.message-content .lead {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 500;
}

.signature {
    border-top: 2px solid #eee;
    padding-top: 1rem;
}

.signature-line {
    width: 200px;
    height: 1px;
    background: #ddd;
    margin-bottom: 0.5rem;
}

.principal-name h4 {
    color: var(--primary-color);
}

/* Responsive Design for Principal Section */
@media (max-width: 768px) {
    .principal-message {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .principal-photo img {
        width: 200px !important;
        height: 200px !important;
    }
}

/* ======================== */
/* COMPREHENSIVE MOBILE RESPONSIVE CSS */
/* ======================== */

/* Mobile Portrait - 576px and below */
@media (max-width: 575.98px) {
    /* Body Adjustments */
    body {
        padding-top: 60px;
        font-size: 14px;
    }
    
    /* Navbar Mobile */
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .navbar-brand img {
        width: 28px !important;
        height: 28px !important;
    }
    
    /* Container Padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Hero Section Mobile Enhanced */
    .hero-section {
        padding: 30px 0 !important;
        min-height: 70vh !important;
    }
    
    .hero-content {
        text-align: center !important;
        padding: 0 10px;
    }
    
    /* Hero Title Mobile - Clean */
    .welcome-label {
        font-size: 1rem !important;
        letter-spacing: 1px !important;
    }
    
    .hero-main-title {
        font-size: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .school-name {
        font-size: 2.2rem !important;
        letter-spacing: 1px !important;
        margin-bottom: 0.3rem !important;
    }
    
    .school-location {
        font-size: 1.5rem !important;
        letter-spacing: 1px !important;
    }
    
    /* Hero Subtitle Mobile */
    .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 2rem !important;
        padding: 0 10px;
    }
    
    /* Hero Divider Mobile */
    .hero-divider {
        width: 60px !important;
        margin-bottom: 2rem !important;
    }
    
    /* Hero Buttons Mobile */
    .hero-actions .d-flex {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        font-size: 0.9rem !important;
        padding: 12px 30px !important;
        width: 200px !important;
        margin: 0 auto !important;
    }
    
    /* Hero Stats Mobile */
    .hero-stats .row {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .stat-item {
        margin: 0 !important;
        padding: 1rem !important;
        width: 120px !important;
        margin: 0 auto !important;
    }
    
    .stat-number {
        font-size: 1.8rem !important;
    }
    
    .stat-label {
        font-size: 0.8rem !important;
    }
    
    /* Scroll Down Button Mobile */
    .scroll-down-section {
        margin-top: 2rem !important;
    }
    
    .scroll-text {
        font-size: 0.9rem !important;
    }
    
    .scroll-arrow {
        height: 30px !important;
    }
    
    .arrow-line {
        height: 20px !important;
    }
    
    /* Principal Section Mobile */
    .section-title {
        font-size: 1.8rem !important;
    }
    
    .principal-container {
        padding: 2rem !important;
    }
    
    .principal-photo {
        width: 100px !important;
        height: 100px !important;
    }
    
    .principal-name {
        font-size: 1.4rem !important;
    }
    
    .principal-title {
        font-size: 1rem !important;
    }
    
    .message-paragraph {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    
    .highlight-message {
        padding: 1.5rem !important;
    }
    
    .highlight-title {
        font-size: 1.1rem !important;
    }
    
    .motto-text {
        font-size: 1.5rem !important;
    }
    
    .signature-section {
        padding: 1.5rem !important;
        text-align: center !important;
    }
    
    /* Statistics Cards Mobile */
    .stat-card,
    .visitor-stat-card {
        padding: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .stat-icon {
        font-size: 2.5rem !important;
    }
    
    .stat-content .stat-number,
    .visitor-content .visitor-number {
        font-size: 2rem !important;
    }
    
    .stat-content .stat-label,
    .visitor-content .visitor-label {
        font-size: 0.9rem !important;
    }
    
    .visitor-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }
    
    .hero-content h1 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        padding: 0 10px;
    }
    
    .hero-content p {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        padding: 0 10px;
    }
    
    .hero-content .lead {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.5;
    }
    
    .hero-content .d-flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }
    
    .hero-content .btn {
        font-size: 0.85rem !important;
        padding: 10px 20px !important;
        width: 170px;
        text-align: center;
    }
    
    /* Principal Section Mobile */
    .principal-card .card-header {
        height: 150px !important;
    }
    
    .photo-container img {
        width: 100px !important;
        height: 100px !important;
    }
    
    .message-text {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    
    .highlight-box {
        padding: 1rem !important;
    }
    
    .motto-box {
        padding: 0.5rem 1rem !important;
    }
    
    .motto-box h4 {
        font-size: 1rem !important;
    }
    
    .signature-section {
        padding: 1rem !important;
    }
    
    /* Navbar Mobile */
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        height: 30px !important;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    /* Principal Section Mobile */
    .principal-photo img {
        width: 150px !important;
        height: 150px !important;
    }
    
    .principal-name h3 {
        font-size: 1.3rem;
    }
    
    .principal-message h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .principal-message p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }
    
    /* Visi Misi Mobile */
    .mission-item {
        margin-bottom: 1.5rem !important;
    }
    
    .mission-number .badge {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .mission-text p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Cards Mobile */
    .card-body {
        padding: 1.5rem !important;
    }
    
    .card h3 {
        font-size: 1.3rem;
    }
    
    .blockquote p {
        font-size: 1.1rem !important;
    }
    
    /* Statistics Section Mobile */
    .stat-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Gallery Mobile */
    .gallery-item {
        margin-bottom: 1.5rem;
    }
    
    .gallery-overlay h5 {
        font-size: 1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.8rem;
    }
    
    /* Tables Mobile */
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
    
    /* Buttons Mobile */
    .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .btn-group-sm .btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    /* Forms Mobile */
    .form-control {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .form-label {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    /* Footer Mobile */
    .footer-section {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-section h5 {
        font-size: 1.1rem;
    }
    
    .footer-section p,
    .footer-section li {
        font-size: 0.9rem;
    }
}

/* Mobile Landscape - 576px to 767.98px */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Navbar Tablet */
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-brand img {
        width: 30px !important;
        height: 30px !important;
    }
    
    /* Hero Section Tablet */
    .hero-section {
        min-height: 80vh !important;
        padding: 40px 0 !important;
    }
    
    .welcome-label {
        font-size: 1.1rem !important;
    }
    
    .hero-main-title {
        font-size: 2.8rem !important;
    }
    
    .school-name {
        font-size: 3rem !important;
        letter-spacing: 2px !important;
    }
    
    .school-location {
        font-size: 2rem !important;
        letter-spacing: 1.5px !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
        padding: 0 20px;
    }
    
    .hero-divider {
        width: 70px !important;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        font-size: 1rem !important;
        padding: 15px 35px !important;
        width: 220px !important;
    }
    
    .stat-item {
        width: 140px !important;
        padding: 1.2rem !important;
    }
    
    .stat-number {
        font-size: 2.2rem !important;
    }
    
    /* Principal Section Tablet */
    .section-title {
        font-size: 2.2rem !important;
    }
    
    .principal-container {
        padding: 2.5rem !important;
    }
    
    .principal-photo {
        width: 130px !important;
        height: 130px !important;
    }
    
    .principal-name {
        font-size: 1.6rem !important;
    }
    
    .message-paragraph {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }
    
    .motto-text {
        font-size: 1.8rem !important;
    }
}

/* Principal Section - Clean & Professional */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #6c757d);
    border-radius: 2px;
}

.principal-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    transition: all 0.3s ease;
}

.principal-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Principal Header */
.principal-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 2rem;
}

.principal-photo-wrapper {
    position: relative;
    display: inline-block;
}

.principal-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0d6efd;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
}

.principal-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(13, 110, 253, 0.4);
}

.principal-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.principal-title {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
    margin: 0;
}

/* Message Content */
.message-opening {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 2rem;
}

.greeting {
    font-size: 1.2rem;
    font-style: italic;
    color: #0d6efd;
    font-weight: 500;
    margin: 0;
}

.message-body {
    padding: 2rem 0;
}

.message-paragraph {
    font-size: 1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Highlight Message */
.highlight-message {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid #0d6efd;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.highlight-message:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

.highlight-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0d6efd;
    margin-bottom: 1rem;
}

/* School Motto */
.school-motto {
    background: linear-gradient(135deg, #0d6efd, #6c757d);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.motto-text {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Message Closing */
.message-closing {
    border-top: 1px solid #e9ecef;
    padding-top: 2rem;
}

.closing-greeting {
    font-size: 1.1rem;
    font-style: italic;
    color: #0d6efd;
    font-weight: 500;
    margin: 0;
}

/* Signature */
.signature-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    text-align: right;
    border-left: 4px solid #0d6efd;
    transition: all 0.3s ease;
}

.signature-section:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.signature-content {
    position: relative;
}

.signature-regards {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.signature-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.signature-position {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* Tablet Portrait - 768px to 991.98px */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.8rem !important;
    }
    
    .principal-message {
        padding: 2rem;
    }
    
    .card-body {
        padding: 2.5rem !important;
    }
    
    .principal-card .card-header {
        height: 170px !important;
    }
    
    .photo-container img {
        width: 120px !important;
        height: 120px !important;
    }
    
    .message-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover,
    .btn:hover,
    .nav-link:hover {
        transform: none;
    }
}

/* Horizontal Scroll Prevention */
* {
    max-width: 100%;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Mobile Navigation Improvements */
@media (max-width: 991.98px) {
    .navbar-toggler {
        border: none;
        padding: 8px 12px;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 1rem;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
}

/* Agenda Card Styling */
.agenda-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agenda-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.agenda-date {
    background: linear-gradient(135deg, #0d6efd, #0056b3);
    color: white;
    border-radius: 12px;
    text-align: center;
    padding: 10px;
    min-width: 60px;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.agenda-date .date-number {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.agenda-date .date-month {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.9;
}

/* =============================================
   SAMBUTAN KEPALA SEKOLAH - MODERN DESIGN
   ============================================= */

.principal-welcome-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.08),
        0 8px 16px rgba(0,0,0,0.04);
    border: 1px solid rgba(13, 110, 253, 0.1);
    position: relative;
    overflow: hidden;
}

.principal-welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #6f42c1, #20c997);
}

/* Photo Section */
.principal-photo-section {
    position: relative;
}

.principal-photo-frame {
    position: relative;
    display: inline-block;
    padding: 8px;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.3);
}

.principal-photo-modern {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    transition: transform 0.3s ease;
}

.principal-photo-modern:hover {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.photo-badge {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    border: 3px solid white;
}

.principal-info {
    text-align: center;
}

.principal-name-modern {
    font-size: 24px;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.principal-title-badge {
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.credential-badge {
    background: #f8f9fa;
    color: #6c757d;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #dee2e6;
}

/* Content Section - Centered Layout */
.welcome-content-centered {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.welcome-header {
    margin-bottom: 40px;
}

.greeting-text {
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-radius: 15px;
    border-left: 4px solid #0d6efd;
}

.quote-icon {
    position: absolute;
    top: -5px;
    left: 15px;
    color: #0d6efd;
    font-size: 24px;
    background: white;
    padding: 5px;
    border-radius: 50%;
}

.greeting-title {
    color: #0d6efd;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    font-style: italic;
}

.lead-message {
    font-size: 16px;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 30px;
    text-align: justify;
}

/* Key Points - Removed emoji styling */

/* Highlight Quote */
.highlight-quote {
    background: linear-gradient(135deg, #fff3cd, #fef7e0);
    border: 1px solid #ffc107;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
}

/* Removed quote icon that was blocking text */

.quote-title {
    color: #856404;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.quote-text {
    color: #6c5720;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Welcome Footer */
.welcome-footer {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e9ecef;
}

.message-paragraph {
    font-size: 15px;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 20px;
    text-align: justify;
}

.school-motto {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    border-radius: 15px;
    color: white;
}

.motto-text {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.closing-message {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.closing-text {
    margin: 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    font-style: italic;
}

.regards-text {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 10px;
    font-style: italic;
}

.signature-section {
    text-align: right;
    position: relative;
}

.signature-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0d6efd);
    margin: 0 0 15px auto;
}

.signature-text {
    margin: 0;
    font-size: 14px;
}

.signature-text strong {
    color: #0d6efd;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .principal-welcome-card {
        padding: 30px 20px;
    }
    
    .welcome-content-centered {
        padding: 0 15px;
    }
    
    .principal-photo-modern {
        width: 200px;
        height: 200px;
    }
    
    .message-paragraph {
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    .principal-welcome-card {
        padding: 20px 15px;
    }
    
    .welcome-content-centered {
        padding: 0 10px;
    }
    
    .principal-photo-modern {
        width: 180px;
        height: 180px;
    }
    
    .principal-name-modern {
        font-size: 20px;
    }
    
    .greeting-title {
        font-size: 16px;
    }
    
    .lead-message {
        font-size: 15px;
        text-align: left;
    }
    
    .message-paragraph {
        font-size: 14px;
        text-align: left;
    }
    
    .motto-text {
        font-size: 20px;
    }
    
    .signature-section {
        text-align: center;
    }
    
    .signature-line {
        margin: 0 auto 15px auto;
    }
}
