/* public/css/style.css */
:root {
    --primary-color: #243D32;
    --secondary-color: #9A421A;
    --bg-color: #F9F5EF;
    --text-color: #181614;
    --text-light: #5A534B;
    --white: #ffffff;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

p {
    text-align: justify;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

/* Header */
header {
    box-sizing: border-box;
    background-color: transparent;
    box-shadow: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled,
header:hover {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    z-index: -1;
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

header.scrolled::before,
header:hover::before {
    opacity: 0;
}

.top-bar {
    box-sizing: border-box;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 50px;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
    max-width: 1400px;
    margin: 0 auto;
}

.top-bar-wrapper {
    box-sizing: border-box;
    background-color: var(--primary-color);
    transition: background-color 0.4s ease;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin-left: 15px;
}

.nav-container {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Swiper Arrows Styling */
.swiper-button-next, .swiper-button-prev {
    color: white !important;
    background: rgba(0, 0, 0, 0.4);
    width: 45px;
    height: 45px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 20px !important;
}

.swiper-button-next {
    right: 20px !important;
}

.swiper-button-prev {
    left: 20px !important;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--primary-color);
}

.swiper-button-next:active {
    transform: rotate(360deg) scale(0.9);
    transition: transform 0.3s ease;
}

.swiper-button-prev:active {
    transform: rotate(-360deg) scale(0.9);
    transition: transform 0.3s ease;
}

.logo h1 {
    margin: 0;
    font-size: 28px;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.header.scrolled .nav-links a,
.header:hover .nav-links a {
    color: var(--text-color);
    text-shadow: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--white);
    transition: width 0.3s ease;
}

.header.scrolled .nav-links a::after,
.header:hover .nav-links a::after {
    background-color: var(--secondary-color);
}

.nav-links a:hover {
    color: var(--white);
}

.header.scrolled .nav-links a:hover,
.header:hover .nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Hero Section */
.hero {
    height: 80vh;
    position: relative;
    overflow: hidden;
}

.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
}

.hero .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5); /* Overlay */
}

.swiper-slide.video-slide {
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.swiper-slide.video-slide iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border: none;
    transform: translate(-50%, -50%) scale(1.15); /* Scale to hide YouTube logos and title */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.swiper-slide-active.video-slide iframe {
    opacity: 1;
}

@media (min-width: 769px) {
    .swiper-slide.video-slide iframe {
        top: 50%;
        left: 50%;
        width: 100vw !important;
        height: 56.25vw !important; /* 16:9 */
        min-height: 80vh;
        min-width: 142.22vh;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    z-index: 10;
    pointer-events: none; /* let clicks pass through to slider if needed */
}

.hero-content {
    pointer-events: auto;
}

.hero-content h1 {
    font-size: 60px;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    padding: 80px 50px;
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

/* Universal Section Headings */
.section-heading {
    margin-bottom: 30px;
    position: relative;
}

.section-heading.text-center {
    text-align: center;
}

.section-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color) !important;
    margin: 0;
    line-height: 1.2;
}

.section-heading:not(.text-center) .section-title {
    text-align: justify;
    text-justify: inter-word;
}

.section-heading.text-center .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 20px auto 0;
}

.section-heading:not(.text-center) .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 20px 0 0;
}

.about-slogan {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-explore {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 35px;
    margin-bottom: 15px;
}

.about-audio {
    width: 100%;
    max-width: 300px;
    height: 40px;
}

.about-image {
    flex: 1;
    background-color: var(--white);
    padding: 15px; /* Creates the white frame */
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12); /* Subtle deep shadow */
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px; /* Slight rounding on inner image */
}

/* News Section */
.news-wrapper {
    background-color: var(--white);
}

.news {
    padding: 80px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.news h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: #ffffff !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.newsSwiper .swiper-wrapper {
    align-items: stretch;
}

.newsSwiper .swiper-slide {
    height: auto;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.news-img {
    height: 220px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

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

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.news-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.news-excerpt {
    color: var(--text-light);
    font-size: 14px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin: 0 auto 40px auto;
    max-width: 1400px;
    padding: 0 50px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    text-decoration: none;
}

.footer-links a:hover {
    opacity: 1;
}

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

.footer-contact li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    opacity: 0.8;
}

.footer-bottom p {
    text-align: center;
    margin: 0;
}

@media (max-width: 768px) {
    header {
        background-color: var(--white) !important;
        position: sticky !important;
    }
    
    header::before {
        display: none !important;
    }
    
    .nav-container {
        padding: 10px 20px;
    }
    
    .hamburger {
        color: var(--primary-color) !important;
    }
    
    .top-bar { 
        flex-direction: row; 
        align-items: center; 
        justify-content: space-between;
        gap: 8px; 
        text-align: left;
        padding: 8px 15px;
        font-size: 12px;
    }
    .top-bar-contact {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .top-bar span {
        display: block;
        margin-left: 0 !important;
        margin-bottom: 0 !important;
    }
    .hero {
        height: 56.25vw; /* 16:9 aspect ratio to match video perfectly */
        min-height: auto;
    }
    .nav-links { display: none; }
    .hamburger { display: block !important; }
    
    .about { 
        flex-direction: column; 
        padding: 40px 20px;
        gap: 30px;
    }
    .about-text {
        text-align: center;
    }
    .section-heading:not(.text-center) .section-title {
        text-align: left;
    }
    .about-title {
        font-size: 28px !important;
    }
    .about-subtitle {
        font-size: 22px;
    }
    .about-slogan {
        font-size: 15px;
        text-align: center;
        letter-spacing: 0;
    }
    
    .hero-content {
        padding: 0 40px;
    }
    
    .hero-content h1 { 
        font-size: 26px; 
        margin-bottom: 10px;
    }
    
    .hero-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    /* Smaller Swiper Arrows on Mobile */
    .swiper-button-next, .swiper-button-prev {
        width: 30px;
        height: 30px;
    }
    .swiper-button-next::after, .swiper-button-prev::after {
        font-size: 14px !important;
    }
    
    /* Adjust FAB for Mobile to prevent text overlap */
    .fab-container {
        left: 15px;
        bottom: 15px;
    }
}

/* Floating Action Button (FAB) */
.fab-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.fab-toggle {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.fab-toggle.active {
    background: #e74c3c;
    transform: rotate(135deg);
}

.fab-toggle .fab-icon-close { display: none; }
.fab-toggle.active .fab-icon-plus { display: none; }
.fab-toggle.active .fab-icon-close {
    display: block;
}

/* Optical centering for the asymmetrical headset icon */
.fab-toggle .fab-icon-plus {
    margin-left: 2px;
}

.fab-menu {
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.fab-item:hover { transform: scale(1.1); }
.fab-whatsapp { background-color: #25D366; }
.fab-phone { background-color: #34b7f1; }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 35px; /* Aligned centers with 60px FAB */
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top:hover { background: var(--primary-color); }
.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hamburger Menu */
.hamburger {
    display: none; /* Only visible on mobile */
    font-size: 24px;
    cursor: pointer;
    color: var(--white);
    transition: color 0.3s;
}

.header.scrolled .hamburger {
    color: var(--primary-color);
}

/* Mobile Menu Overlay - Sidebar */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -400px;
    left: auto;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background-color: var(--secondary-color);
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 30px 30px 30px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu-overlay.active { 
    right: 0 !important; 
}

.mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    color: var(--white);
    transition: transform 0.3s ease;
}

.mobile-menu-close:hover { transform: rotate(90deg); }

.mobile-nav-links {
    list-style: none;
    padding: 0;
    text-align: left;
    width: 100%;
}

.mobile-nav-links li {
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transform: translateX(30px);
    opacity: 0;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active .mobile-nav-links li {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(7) { transition-delay: 0.4s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(8) { transition-delay: 0.45s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(9) { transition-delay: 0.5s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(10) { transition-delay: 0.55s; }

.mobile-nav-links a {
    text-decoration: none;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 18px 0;
    text-transform: uppercase;
    white-space: normal;
    word-break: break-word;
}

.mobile-nav-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 12px;
    font-size: 14px;
    opacity: 0.9;
}

.mobile-nav-links a.btn-primary {
    margin-top: 20px;
    color: white;
    padding: 12px 30px;
    justify-content: center;
}
.mobile-nav-links a.btn-primary::before { display: none; }

/* Mobile collapsible Register sub-menu */
.mobile-has-dropdown > a.mobile-dropdown-toggle {
    justify-content: space-between;
}

.mobile-has-dropdown > a.mobile-dropdown-toggle::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 12px;
    font-size: 14px;
    flex-shrink: 0;
}

.mobile-dropdown-icon {
    font-size: 12px !important;
    transition: transform 0.3s ease;
    margin-left: auto;
    margin-right: 0 !important;
}

.mobile-has-dropdown.open > a .mobile-dropdown-icon {
    transform: rotate(180deg);
}

.mobile-has-dropdown.open {
    background-color: rgba(0,0,0,0.15);
}

.mobile-sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: rgba(0,0,0,0.2);
}

.mobile-has-dropdown.open .mobile-sub-menu {
    max-height: 400px;
}

.mobile-sub-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transform: none !important;
    opacity: 1 !important;
}

.mobile-sub-menu li a {
    padding: 14px 0 14px 32px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,0.9) !important;
}

.mobile-sub-menu li a::before {
    content: '\f105' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    margin-right: 10px;
    font-size: 12px !important;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white) !important;
}
