/* ============================================
   MODERN LANDING PAGE STYLES
   ============================================ */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: transparent;
}

/* Remove any white background from body/html */
html {
    background-color: transparent;
}

/* Ensure main content area doesn't have white background before carousel */
main {
    background-color: transparent !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Section spacing for single page layout */
section[id],
div[id] {
    scroll-margin-top: 70px; /* Offset for fixed header */
}

.content-wrapper,
section:first-of-type {
    background-color: transparent !important;
}

/* ============================================
   NAVIGATION (Custom Navbar like reference)
   ============================================ */

header {
    width: 100% !important;
    position: fixed !important;
    padding: 0 2rem !important;
    z-index: 1000 !important;
    display: flex !important;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)) !important;
    top: 0;
    left: 0;
}

.navbar {
    width: 100% !important;
    height: 60px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: transparent !important;
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo a {
    margin-left: 10px !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.navbar .logo a:hover {
    color: #ff7300 !important;
}

.navbar .links {
    display: flex !important;
    gap: 2rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar .links li {
    list-style: none !important;
}

.navbar .links li a {
    text-decoration: none !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    transition: color 0.3s ease !important;
}

.navbar .links li a:hover,
.navbar .links li a.active {
    color: #ff7300 !important;
}

.navbar .toggle_btn {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    display: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.action_btn {
    background-color: #ff7300 !important;
    color: #ffffff !important;
    padding: 0.5rem 1rem !important;
    border: none !important;
    outline: none !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.action_btn:hover {
    transform: scale(1.05) !important;
    color: #ffffff !important;
    background-color: #ff8500 !important;
}

.action_btn:active {
    transform: scale(0.95) !important;
}

.dropdown_menu {
    display: none !important;
    position: absolute !important;
    right: 2rem !important;
    top: 60px !important;
    height: 0 !important;
    width: 300px !important;
    background: rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(15px) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    transition: height 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.dropdown_menu.open {
    height: 270px !important;
}

.dropdown_menu li {
    padding: 0.7rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    list-style: none !important;
}

.dropdown_menu li a {
    color: #ffffff !important;
    text-decoration: none !important;
    width: 100% !important;
    text-align: center !important;
}

.dropdown_menu li a:hover {
    color: #ff7300 !important;
}

.dropdown_menu .action_btn {
    width: 80% !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar .links,
    .navbar .action_btn {
        display: none !important;
    }

    .navbar .toggle_btn {
        display: block !important;
    }

    .dropdown_menu {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .dropdown_menu {
        display: none !important;
    }
}

/* ============================================
   CAROUSEL SECTION
   ============================================ */

.carousel-hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 0;
}

.carousel-image-wrapper {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
}

.carousel-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 0.5s ease;
}

.carousel-item.active .carousel-image-wrapper img {
    transform: scale(1.05);
}

.carousel-hero .carousel-indicators {
    margin-bottom: 2rem;
    z-index: 5;
}

.carousel-hero .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    margin: 0 3px;
    transition: all 0.3s ease;
}

.carousel-hero .carousel-indicators button.active {
    background-color: #ffffff;
    border-color: #ffffff;
    width: 25px;
    border-radius: 4px;
}

.carousel-hero .carousel-control-prev,
.carousel-hero .carousel-control-next {
    width: 45px;
    height: 45px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-hero .carousel-control-prev {
    left: 20px;
}

.carousel-hero .carousel-control-next {
    right: 20px;
}

.carousel-hero .carousel-control-prev:hover,
.carousel-hero .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
}

.carousel-hero .carousel-control-prev-icon,
.carousel-hero .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.carousel-hero .carousel-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 2rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    text-align: center;
}

@media (min-width: 768px) {
    .carousel-hero .carousel-caption {
        padding: 3rem;
    }
}

.carousel-content {
    max-width: 800px;
    margin: 0 auto;
}

.carousel-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease;
}

.carousel-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.carousel-hero .btn {
    animation: fadeInUp 0.8s ease 0.4s both;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.carousel-hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .carousel-hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .carousel-image-wrapper {
        height: 60vh;
        min-height: 400px;
    }
    
    .carousel-title {
        font-size: 1.8rem;
    }
    
    .carousel-text {
        font-size: 1rem;
    }
    
    .carousel-hero .carousel-indicators {
        margin-bottom: 1rem;
    }
    
    .carousel-hero .carousel-indicators button {
        width: 6px;
        height: 6px;
        border: 1px solid rgba(255, 255, 255, 0.8);
        margin: 0 2px;
    }
    
    .carousel-hero .carousel-indicators button.active {
        width: 20px;
        border-radius: 3px;
    }
    
    .carousel-hero .carousel-control-prev,
    .carousel-hero .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    .carousel-hero .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-hero .carousel-control-next {
        right: 10px;
    }
    
    .carousel-hero .carousel-control-prev-icon,
    .carousel-hero .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   HERO SECTION (Fallback)
   ============================================ */

.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    padding: 120px 0 80px;
    margin-top: 76px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
    transform: rotateY(180deg);
}

.hero-wave path {
    fill: #ffffff;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-section {
    background: #ffffff;
}

.feature-card {
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
}

.feature-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* ============================================
   POSTS/NEWS SECTION
   ============================================ */

.posts-section {
    background: #ffffff;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
}

.news-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    position: relative;
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
    border-color: #d1d5db;
}

.news-card-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f9fafb;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-card-image img {
    transform: scale(1.03);
}

.news-card-overlay {
    display: none;
}

.news-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
}

.news-card-meta .badge {
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    text-transform: none;
    letter-spacing: 0;
    background-color: #eff6ff;
    color: #1e40af;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.news-card-meta .text-muted {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.news-card-meta .text-muted i {
    font-size: 0.6875rem;
}

.news-card-title {
    margin: 0 0 0.625rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    color: #111827;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.news-card > a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.news-card-title {
    color: #111827;
    transition: color 0.15s ease;
}

.news-card:hover .news-card-title {
    color: #2563eb;
}

.news-card-text {
    color: #4b5563;
    flex-grow: 1;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.news-card-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.15s ease;
    margin-top: auto;
    width: fit-content;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.news-card:hover .news-card-link {
    color: #1e40af;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.news-card-link i {
    font-size: 0.75rem;
    transition: transform 0.15s ease;
}

.news-card:hover .news-card-link i {
    transform: translateX(2px);
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    color: white;
}

.gallery-content h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   FOOTER
   ============================================ */

.footer-modern {
    background: #1e293b;
    color: #cbd5e1;
    margin-top: 5rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 0.75rem;
    color: #cbd5e1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem;
}

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons,
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
    }
    
    .news-card-body {
        padding: 1.5rem;
    }
    
    .news-card-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .news-card-text {
        font-size: 0.875rem;
        margin-bottom: 1rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .news-card-meta {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .news-card-meta .badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.625rem;
    }
    
    .news-card-meta .text-muted {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .news-card {
        border-radius: 6px;
    }
    
    .news-card-body {
        padding: 0.875rem;
    }
    
    .news-card-title {
        font-size: 0.9375rem;
    }
    
    .news-card-text {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .news-card-link {
        font-size: 0.75rem;
    }
    
    .gallery-item {
        aspect-ratio: 16/9;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f91 100%);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
