/* ===========================
   ELEGANT RESPONSIVE DESIGN
   =========================== */

/* Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        padding: 3rem 2rem;
    }

    .page-content {
        grid-template-columns: 1fr 300px;
        gap: 3rem;
    }
}

/* Medium Devices (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 2rem 1.5rem;
    }

    .page-content {
        grid-template-columns: 1fr 280px;
        gap: 2.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
}

/* Tablets (768px to 991px) */
@media (max-width: 991px) {
    .navbar-container {
        padding: 0.8rem 1.5rem;
    }

    .navbar-logo {
        height: 45px;
    }

    .navbar-brand h1 {
        font-size: 1.3rem;
    }

    .navbar-brand .tagline {
        font-size: 0.75rem;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-dark);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link::after {
        display: none;
    }

    .submenu {
        position: static;
        background-color: rgba(0, 0, 0, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: none;
        border-radius: 0;
    }

    .nav-item.active .submenu {
        max-height: 300px;
    }

    .submenu a {
        padding-left: 3rem;
    }

    .submenu a:hover {
        padding-left: 3.5rem;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 4rem 1.5rem;
        min-height: 500px;
    }

    .hero h2 {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .hero p {
        font-size: 1rem;
    }

    .page-header {
        padding: 2.5rem 1.5rem;
    }

    .page-header h1 {
        font-size: clamp(1.75rem, 4vw, 2.3rem);
    }

    .page-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        grid-column: 1;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .achievements-gallery {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .about-card {
        padding: 2rem;
    }

    .info-card {
        padding: 2rem;
    }

    /* About Section Responsive */
    .about-container {
        grid-template-columns: 1fr 1.1fr;
        gap: 4rem;
        padding: 0 2rem;
    }

    .about-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        padding: 3rem 2rem;
    }

    .about-features {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    /* Visi & Misi Responsive */
    .visi-misi-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        padding: 0 2rem;
    }

    .visi-misi-item {
        padding: 2.5rem;
    }

    .history-section {
        padding: 2.5rem;
        margin: 3rem auto 4rem auto;
    }

    /* Carousel Responsive */
    .carousel-container {
        max-width: 900px;
        margin: 2rem auto 0;
    }

    .carousel-btn {
        width: 48px;
        height: 48px;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
}

/* Small Devices (576px to 767px) */
@media (max-width: 767px) {
    :root {
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
    }

    .container {
        max-width: 100%;
        padding: 1.5rem;
    }

    .navbar-container {
        padding: 0.75rem 1rem;
    }

    .navbar-logo {
        height: 40px;
    }

    .navbar-brand h1 {
        font-size: 1.1rem;
    }

    .navbar-brand .tagline {
        font-size: 0.7rem;
    }

    .navbar-brand {
        gap: 0.75rem;
    }

    .hero {
        padding: 2rem 1rem;
        min-height: 100vh;
    }

    .hero h2 {
        font-size: clamp(1.5rem, 3vw, 2.2rem);
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-tagline {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .page-header {
        padding: 2rem 1rem;
    }

    .page-header h1 {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .content-section h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .content-section h3 {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }

    .content-section p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .product-card {
        border-radius: 8px;
    }

    .product-image {
        height: 160px;
        font-size: 2.5rem;
    }

    .product-info {
        padding: 1.5rem;
    }

    .sidebar-box {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .about-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    /* About Section Tablet */
    .about-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1.5rem;
    }

    .about-image-wrapper {
        order: -1;
    }

    .about-image-placeholder {
        height: 350px;
    }

    .about-content-wrapper h2 {
        font-size: 2rem;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    /* Visi & Misi Tablet */
    .visi-misi-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .visi-misi-item {
        padding: 2rem;
    }

    .history-section {
        padding: 2rem;
        margin: 2.5rem auto 3rem auto;
    }

    /* Carousel Tablet */
    .achievements-section {
        /* No padding - let wrapper handle it */
    }

    .carousel-container {
        max-width: 100%;
        margin: 1.5rem 0 0 0;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Achievements Section Tablet */
    .achievements-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2.5rem 1.5rem;
    }

    .achievements-content {
        padding: 0;
    }

    .achievements-content h2 {
        font-size: 1.5rem;
    }

    .achievements-carousel {
        width: 100%;
    }

    .carousel-btn-store {
        width: 40px;
        height: 40px;
    }

    .carousel-btn-store svg {
        width: 20px;
        height: 20px;
    }

    .info-card h3 {
        font-size: 1.1rem;
    }

    .achievement-image {
        height: 200px;
    }

    .achievements-gallery {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-bottom {
        padding: 1rem 1.5rem;
    }

    .info-box {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-section {
        padding: 1.5rem;
    }

    .vision-mission-container {
        grid-template-columns: 1fr;
    }

    .training-grid {
        grid-template-columns: 1fr;
    }

    /* About Section Mobile */
    .about-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .about-image-placeholder {
        height: 280px;
        font-size: 1rem;
    }

    .about-content-wrapper h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .about-tagline {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
    }

    .about-content-wrapper p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin: 1.5rem 0;
    }

    .about-feature-item {
        padding: 1.2rem;
    }

    .about-feature-item .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }

    .about-feature-item h4 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .about-feature-item p {
        font-size: 0.9rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-text {
        font-size: 0.85rem;
    }

    /* Visi & Misi Mobile */
    .visi-misi-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        margin: 2.5rem auto;
    }

    .visi-misi-item {
        padding: 1.5rem;
    }

    .visi-misi-item h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .visi-misi-item p,
    .visi-misi-item ul li {
        font-size: 0.9rem;
    }

    .history-section {
        padding: 1.5rem;
        margin: 2rem auto 2.5rem auto;
    }

    .history-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .history-section p {
        font-size: 0.9rem;
    }

    /* Carousel Mobile */
    .achievements-section {
        padding: 2.5rem 1rem;
    }

    .carousel-container {
        max-width: 100%;
        margin: 1.5rem 0 0 0;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        left: 0.5rem;
    }

    .carousel-next {
        right: 0.5rem;
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }

    .carousel-indicators {
        gap: 0.6rem;
        margin-top: 1rem;
    }

    /* Achievements Section Mobile */
    .achievements-section {
        /* No padding - let wrapper handle it */
    }

    .achievements-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .achievements-content {
        padding: 0;
    }

    .achievements-label {
        font-size: 0.7rem;
    }

    .achievements-content h2 {
        font-size: 1.3rem;
    }

    .achievements-content p {
        font-size: 0.8rem;
    }

    .achievements-list li {
        font-size: 0.8rem;
    }

    .carousel-btn-store {
        width: 36px;
        height: 36px;
        left: 0.5rem;
    }

    .carousel-next-store {
        right: 0.5rem;
    }

    .carousel-btn-store svg {
        width: 18px;
        height: 18px;
    }

    .carousel-controls-mobile {
        display: flex !important;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .news-section {
        padding: 2.5rem 1.5rem;
        margin: 2rem 0;
    }

    .news-image {
        height: 200px;
    }
}

/* Extra Small Devices (max 575px) */
@media (max-width: 575px) {
    html {
        font-size: 14px;
    }

    .navbar {
        padding: 0;
    }

    .navbar-container {
        padding: 0.6rem 0.8rem;
        gap: 0.5rem;
    }

    .navbar-logo {
        height: 35px;
    }

    .navbar-brand h1 {
        font-size: 1rem;
    }

    .navbar-brand .tagline {
        font-size: 0.65rem;
    }

    .nav-menu {
        max-height: 0;
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .submenu a {
        padding-left: 2rem;
        font-size: 0.85rem;
    }

    .hero {
        padding: 2rem 0.8rem;
        min-height: 100vh;
    }

    .hero h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }

    .btn-small {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .page-header {
        padding: 1.5rem 0.8rem;
    }

    .page-header h1 {
        font-size: 1.3rem;
    }

    .page-header p {
        font-size: 0.85rem;
    }

    .container {
        padding: 1rem 0.8rem;
    }

    .content-section h2 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .content-section h3 {
        font-size: 1rem;
        margin-top: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .content-section p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
        line-height: 1.6;
    }

    .content-section ul,
    .content-section ol {
        margin-left: 1.5rem;
        margin-bottom: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-image {
        height: 140px;
        font-size: 2rem;
    }

    .product-info {
        padding: 1.2rem;
    }

    .product-info h3 {
        font-size: 1rem;
    }

    .sidebar-box {
        padding: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .sidebar-box h4 {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .about-card {
        padding: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .about-card h3 {
        font-size: 1rem;
    }

    .info-card {
        padding: 1.2rem;
    }

    .info-card h3 {
        font-size: 1rem;
    }

    .info-card p {
        font-size: 0.85rem;
    }

    .achievement-image {
        height: 160px;
    }

    .achievements-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0 0.8rem;
    }

    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    .footer-section p {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }

    .footer-bottom {
        padding: 0.8rem;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }

    .info-box {
        padding: 1.2rem;
        margin: 1rem 0;
    }

    .info-box h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .contact-form-section {
        padding: 1.2rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-section {
        padding: 1.5rem 0.8rem;
        margin: 1.5rem 0;
    }

    .news-image {
        height: 180px;
    }

    .news-content {
        padding: 1.5rem;
    }

    .news-card h3 {
        font-size: 1rem;
    }

    .news-detail-image {
        margin: 1.5rem auto;
    }

    .news-detail-content p {
        font-size: 0.95rem;
        text-align: left;
    }

    .news-detail-content ul {
        margin-left: 1.5rem;
    }

    /* About Section Extra Small */
    .about-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0 0.8rem;
        margin-bottom: 1.5rem;
    }

    .about-image-placeholder {
        height: 250px;
        font-size: 0.95rem;
    }

    .about-content-wrapper h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .about-content-wrapper p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.2rem 0;
    }

    .about-feature-item {
        padding: 1rem;
    }

    .about-feature-item .feature-icon {
        font-size: 1.8rem;
    }

    .about-feature-item h4 {
        font-size: 0.95rem;
    }

    .about-feature-item p {
        font-size: 0.85rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.2rem 0.8rem;
        margin-top: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-text {
        font-size: 0.8rem;
    }

    /* Visi & Misi Extra Small */
    .visi-misi-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0 0.8rem;
        margin: 2rem auto;
    }

    .visi-misi-item {
        padding: 1.2rem;
    }

    .visi-misi-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .visi-misi-item p,
    .visi-misi-item ul li {
        font-size: 0.85rem;
    }

    .history-section {
        padding: 1.2rem;
        margin: 1.5rem auto 2rem auto;
    }

    .history-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .history-section p {
        font-size: 0.85rem;
    }

    /* Carousel Extra Small */
    .achievements-section {
        padding: 2rem 0.8rem;
    }

    .carousel-container {
        margin: 1rem 0 0 0;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
    }

    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }

    .carousel-indicator {
        width: 8px;
        height: 8px;
    }

    .carousel-indicator.active {
        width: 24px;
    }

    /* Achievements Section Extra Small */
    .achievements-section {
        /* No padding - let wrapper handle it */
    }

    .achievements-wrapper {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 1.8rem 0.8rem;
    }

    .achievements-content {
        padding: 0;
    }

    .achievements-content h2 {
        font-size: 1.2rem;
    }

    .achievements-content p {
        font-size: 0.78rem;
    }

    .achievements-list li {
        font-size: 0.78rem;
    }

    .carousel-btn-store {
        width: 32px;
        height: 32px;
    }

    .carousel-btn-store svg {
        width: 16px;
        height: 16px;
    }

    .carousel-btn-mobile {
        width: 36px;
        height: 36px;
    }
}

/* Extra Extra Small (max 380px) */
@media (max-width: 380px) {
    .navbar-brand h1 {
        font-size: 0.9rem;
    }

    .navbar-brand .tagline {
        display: none;
    }

    .hero h2 {
        font-size: 1.1rem;
    }

    .page-header h1 {
        font-size: 1.1rem;
    }

    .content-section h2 {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .achievements-gallery {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .nav-toggle,
    .btn,
    .sidebar {
        display: none;
    }

    body {
        background-color: white;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .page-content {
        grid-template-columns: 1fr;
    }

    .content-section,
    .product-card {
        page-break-inside: avoid;
    }
}
