/* ============================================================
   SMK ABDI AGAPE PONTIANAK — Main Stylesheet
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@700&display=swap');

/* --- CSS Variables --- */
:root {
    --primary:      #0d6efd;
    --primary-dark: #0b5ed7;
    --danger:       #dc3545;
    --info:         #0dcaf0;
    --light:        #f8f9fa;
    --dark:         #212529;
    --radius:       0.75rem;
    --shadow:       0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition:   all 0.3s ease;
    --font-main:    'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--dark);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3 { font-family: var(--font-display); }
h4, h5, h6 { font-family: var(--font-main); font-weight: 600; }

/* --- Navbar --- */
.navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.navbar-brand {
    font-family: var(--font-main);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.navbar-brand img {
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem !important;
    border-radius: 0.4rem;
    transition: var(--transition);
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.15);
}

/* --- Hero Section --- */
.hero-section {
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(13,110,253,0.55) 100%),
        url('../../assets/images/Guru/gtk.JPEG') center/cover no-repeat;
    min-height: 90vh;
    color: white;
}

.hero-title {
    font-family: var(--font-display);
    text-shadow: 0 3px 10px rgba(0,0,0,0.4);
    line-height: 1.2;
}

.hero-footer-bar {
    background: rgba(13, 110, 253, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
}

/* --- Cards --- */
.card {
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* --- GTK Carousel --- */
.gtk-image-container {
    overflow: hidden;
    background-color: #f0f0f0;
}

.gtk-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.gtk-card:hover .gtk-image {
    transform: scale(1.06);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 1.4rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: rgba(13,110,253,0.35);
    transition: background-color 0.3s;
    margin: 0 4px;
}

.carousel-indicators button.active {
    background-color: var(--primary);
}

/* --- Feature Icons --- */
.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f0fe, #c7d7fd);
    border-radius: 50%;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.card:hover .feature-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(5deg) scale(1.1);
}

/* --- Icon Box (Visi Misi) --- */
.icon-box {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- ASAJ Table --- */
.table th { font-weight: 600; vertical-align: middle; }
.table td { vertical-align: middle; }
.table-responsive { border-radius: var(--radius); overflow: hidden; }

/* --- Login Card --- */
.card-header.bg-primary {
    border-radius: var(--radius) var(--radius) 0 0 !important;
}

/* --- Alerts --- */
.alert { border-radius: var(--radius); font-size: 0.9rem; }

/* --- Opacity hover --- */
.hover-opacity { transition: opacity 0.2s; }
.hover-opacity:hover { opacity: 1 !important; }

/* --- Footer --- */
footer a:hover { text-decoration: underline !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large tablets */
@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }

    .carousel-control-prev,
    .carousel-control-next { width: 7%; }
}

/* Tablets / Mobile */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }

    .hero-footer-bar { padding: 1.25rem !important; }

    .carousel-control-prev,
    .carousel-control-next { display: none; }

    .icon-box { width: 50px; height: 50px; min-width: 50px; }

    .feature-icon { width: 60px; height: 60px; font-size: 1.5rem; }

    .table { font-size: 0.85rem; }
}

/* Small phones */
@media (max-width: 480px) {
    .hero-title { font-size: 1.75rem; }
    .navbar-brand span { font-size: 0.85rem; }
}