/*
Theme Name: TK PGRI 81
Description: Custom WordPress theme for TK PGRI 81 school website
Version: 1.0.0
*/

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: rgba(0,0,0,0.1);
    padding: 10px 0;
    font-size: 14px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.school-logo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #2980b9;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.school-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.logo-fallback {
    font-size: 24px;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.site-description {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* Navigation Styles */
.main-navigation {
    background: rgba(255,255,255,0.1);
    padding: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu li:hover > a {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-radius: 0 0 8px 8px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 12px 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #2980b9;
    padding-left: 25px;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu a {
        color: #333 !important;
        padding: 15px 20px;
        border-bottom: none;
    }
    
    .nav-menu a:hover {
        background: #f8f9fa !important;
        color: #2980b9 !important;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #f8f9fa;
        display: none;
        border-radius: 0;
    }
    
    .dropdown-menu a {
        padding-left: 40px !important;
        font-size: 14px;
    }
    
    /* Active dropdown state for mobile */
    .dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    /* Prevent dropdown parent links from being clickable on mobile */
    .dropdown > a[href="#"] {
        pointer-events: auto;
        cursor: pointer;
    }
    
    /* Style for dropdown parents without direct links */
    .dropdown > a[href="#"]:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
    }
    
    .dropdown-arrow {
        float: right;
    }
    
    .header-content {
        flex-direction: row !important;
        justify-content: space-between !important;
    }
    
    .site-branding {
        flex-direction: row !important;
    }
}

/* Hero Section */
.hero-section {
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 100px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        min-height: 400px;
        background-attachment: scroll;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        padding: 0 20px;
    }
}

.cta-button {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231,76,60,0.3);
}

.cta-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231,76,60,0.4);
}

/* Welcome Section */
.welcome-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: #3498db;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    overflow: hidden;
    border: 1px solid rgba(52, 152, 219, 0.1);
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border-color: rgba(52, 152, 219, 0.3);
}

.feature-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.05);
}

.image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 20px 20px 0 0;
}

.feature-content {
    padding: 30px;
}

.feature-content h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-content p {
    color: #7f8c8d;
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* Legacy styles */
.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.info-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.info-card p {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Guru List Styles */
.guru-list-container {
    margin: 40px 0;
}

.guru-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.guru-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.guru-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.guru-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.guru-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.guru-card:hover .guru-image img {
    transform: scale(1.05);
}

.guru-info {
    padding: 25px;
}

.guru-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.guru-subject {
    color: #3498db;
    font-weight: 600;
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guru-bio {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info {
    max-width: none;
}

.footer-info h3 {
    color: #3498db;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-contact {
    margin-top: 20px;
}

.footer-contact p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #3498db;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .site-title {
        font-size: 24px;
        text-align: center;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0,0,0,0.95);
        position: absolute;
        top: 100%;
        left: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
        background: rgba(0,0,0,0.1);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .features-grid,
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .guru-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card,
    .guru-info {
        padding: 20px;
    }
}

/* Guru Cards Styling Enhancement */
.guru-list-container {
    margin: 40px 0;
}

.guru-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.guru-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.guru-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.guru-image {
    margin-bottom: 20px;
}

.guru-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f8f9fa;
    transition: all 0.3s ease;
}

.guru-card:hover .guru-image img {
    border-color: #3498db;
    transform: scale(1.05);
}

.guru-name {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.guru-subject {
    color: #3498db;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 1rem;
}

.guru-bio {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Organization Chart Image Styling */
.org-chart img {
    transition: all 0.3s ease;
}

.org-chart img:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Team photos consistent sizing */
.org-box img,
.guru-card img,
.kepala-sekolah img {
    object-fit: cover;
    object-position: center top; /* Focus on face area */
}

/* Mobile responsive untuk guru grid */
@media (max-width: 768px) {
    .guru-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .guru-card {
        padding: 20px;
    }
    
    .guru-image img {
        width: 100px;
        height: 100px;
    }
}
