/* 
  Second Home - Main Stylesheet
  Colors from brand identity:
  Dark Blue: #0D2B45
  Medium Blue: #1E79A8
  Light Blue: #63B0D6
  Orange/Gold: #F1A340
*/

:root {
    --primary-dark: #0D2B45;
    --primary-blue: #1E79A8;
    --secondary-blue: #63B0D6;
    --accent-orange: #F1A340;
    
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--primary-dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 121, 168, 0.4);
}

.btn-accent {
    background-color: var(--accent-orange);
    color: var(--white);
}

.btn-accent:hover {
    background-color: #e0922f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(241, 163, 64, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    padding: 15px 0;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
    transition: var(--transition);
}

.header.scrolled .logo img {
    height: 50px;
}

.navbar .nav-list {
    display: flex;
    gap: 30px;
}

.navbar .nav-list a {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 17px;
    color: var(--primary-dark);
    position: relative;
}

.navbar .nav-list a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: var(--transition);
}

.navbar .nav-list a:not(.btn):hover::after {
    width: 100%;
}

.navbar .nav-list a:not(.btn):hover {
    color: var(--primary-blue);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13, 43, 69, 0.6), rgba(13, 43, 69, 0.3));
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    color: var(--white);
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    color: var(--accent-orange);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease 0.3s backwards;
}

/* Booking Card */
.booking-card {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 35px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.booking-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.form-group {
    text-align: left;
    width: 100%;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--primary-blue);
    margin-right: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 121, 168, 0.1);
}

.booking-form .btn {
    padding: 14px 30px;
    height: 52px;
    width: 100%;
    white-space: nowrap;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-badge {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(99, 176, 214, 0.15);
    color: var(--primary-blue);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 13px;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.features-list {
    margin-bottom: 30px;
}

.features-list li {
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.features-list li i {
    color: var(--accent-orange);
    font-size: 20px;
    margin-right: 15px;
}

.about-images {
    position: relative;
}

.about-images .img-main {
    width: 85%;
    border-radius: 15px;
    box-shadow: var(--shadow);
    object-fit: cover;
    aspect-ratio: 4/3;
}

.about-images .img-sub {
    position: absolute;
    bottom: -30px;
    right: 0;
    width: 50%;
    border-radius: 15px;
    border: 8px solid var(--white);
    box-shadow: var(--shadow);
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* Guide Section */
.section-header {
    max-width: 600px;
    margin: 0 auto 50px;
}

.text-center {
    text-align: center;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.guide-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.guide-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.guide-card:hover .card-img img {
    transform: scale(1.1);
}

.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-head);
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card-body p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 20px;
    font-size: 15px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo-wrapper {
    display: inline-block;
    background-color: var(--white);
    padding: 10px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.footer-logo {
    height: 50px;
    display: block;
}

.footer-slogan {
    color: var(--accent-orange);
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-orange);
    transform: translateY(-3px);
}

.footer h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-orange);
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info li i {
    color: var(--accent-orange);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-info strong {
    color: var(--white);
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a {
    transition: var(--transition);
}

.links-col ul li a:hover {
    color: var(--accent-orange);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Two-column Layout for Category & Detail Pages */
.page-header {
    background-color: var(--primary-dark);
    padding: 120px 0 60px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-layout {
    display: flex;
    gap: 40px;
    padding: 60px 0;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 350px;
    flex-shrink: 0;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    padding-bottom: 10px;
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    display: flex;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.news-item .img-wrapper {
    flex: 0 0 300px;
    height: 200px;
}

.news-item .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-item-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.news-date {
    color: var(--primary-blue);
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Article Detail */
.article-detail img {
    width: 100%;
    border-radius: 15px;
    margin: 20px 0;
}
.article-detail h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.article-detail p {
    margin-bottom: 15px;
    font-size: 16px;
}

.related-posts {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}
.related-posts .guide-grid {
    margin-top: 20px;
}

/* Sidebar Booking Form */
.sidebar-widget .booking-form {
    grid-template-columns: 1fr;
    gap: 15px;
    align-items: stretch;
}

/* Custom Image Size */
.guide-card .card-img {
    height: 250px;
}

/* Responsive */
@media (max-width: 992px) {
    .booking-form {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        margin-top: 30px;
        text-align: center;
    }
    
    .about-images .img-main {
        width: 100%;
    }
    
    .about-images .img-sub {
        width: 60%;
        bottom: -20px;
    }
    
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        padding: 20px;
        border-top: 1px solid #eee;
    }
    .navbar.active {
        display: block;
        animation: fadeInDown 0.3s ease;
    }
    .navbar .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .navbar .nav-list li {
        width: 100%;
    }
    .navbar .nav-list a {
        display: block;
        width: 100%;
    }
    /* Hide desktop booking button if it exists outside menu, but we moved it */
    
    .mobile-toggle {
        display: block;
        margin-left: 20px;
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Scroll To Top Progress */
.progress-wrap {
    position: fixed;
    right: 30px;
    bottom: 30px;
    height: 50px;
    width: 50px;
    cursor: pointer;
    display: block;
    border-radius: 50px;
    box-shadow: inset 0 0 0 2px rgba(30, 121, 168, 0.2);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 400ms linear;
}
.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.progress-wrap::after {
    position: absolute;
    content: '\f062'; /* FontAwesome arrow-up */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    color: var(--primary-blue);
    left: 0;
    top: 0;
    height: 50px;
    width: 50px;
    cursor: pointer;
    display: block;
    z-index: 1;
    transition: all 400ms linear;
}
.progress-wrap:hover::after {
    color: var(--primary-dark);
}
.progress-wrap svg.svg-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.progress-wrap svg.svg-content path {
    fill: none;
    stroke: var(--primary-blue);
    stroke-width: 4;
    box-sizing: border-box;
    transition: all 200ms linear;
}


html {
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    .progress-wrap {
        right: 15px;
        bottom: 15px;
        height: 40px;
        width: 40px;
    }
    .progress-wrap::after {
        line-height: 40px;
        font-size: 16px;
        height: 40px;
        width: 40px;
    }
}


@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 180px;
        padding-bottom: 60px;
        align-items: flex-start;
    }
}

.header-actions .login-icon:hover {
    color: var(--primary-blue) !important;
}

/* Swiper Custom Navigation */
.swiper-button-next, .swiper-button-prev {
    background-color: rgba(0, 0, 0, 0.5);
    color: white !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 18px !important;
}

