/**
 * Page Generic Template Styles
 * Modern, responsive styles for the generic page template
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */
.page-hero-section {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 60px;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-hero-title {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #000;
}

.page-hero-content {
    color: #000;
}

.page-hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    color: #666;
}

/* Styles when overlay is present */
.page-hero-with-overlay .page-hero-content {
    color: #fff;
}

.page-hero-with-overlay .page-hero-title {
    color: #fff;
}

.page-hero-with-overlay .page-hero-subtitle {
    color: #fff;
}

@media (min-width: 768px) {
    .page-hero-section {
        padding: 100px 0;
    }
    
    .page-hero-title {
        font-size: 42px;
    }
    
    .page-hero-subtitle {
        font-size: 20px;
    }
}

@media (min-width: 992px) {
    .page-hero-section {
        padding: 120px 0;
    }
    
    .page-hero-title {
        font-size: 48px;
    }
}

/* ==========================================================================
   Container Width Options
   ========================================================================== */
.container-narrow {
    max-width: 800px;
}

.container-wide {
    max-width: 1400px;
}

/* ==========================================================================
   Page Spacing
   ========================================================================== */
.page-spacing-compact .page-main-content,
.page-spacing-compact .page-highlights-section,
.page-spacing-compact .page-info-sections,
.page-spacing-compact .page-faq-section,
.page-spacing-compact .page-cta-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-spacing-normal .page-main-content,
.page-spacing-normal .page-highlights-section,
.page-spacing-normal .page-info-sections,
.page-spacing-normal .page-faq-section,
.page-spacing-normal .page-cta-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.page-spacing-spacious .page-main-content,
.page-spacing-spacious .page-highlights-section,
.page-spacing-spacious .page-info-sections,
.page-spacing-spacious .page-faq-section,
.page-spacing-spacious .page-cta-section {
    margin-top: 100px;
    margin-bottom: 100px;
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.page-main-content {
    margin-bottom: 60px;
}

.page-main-content p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

.page-main-content h2,
.page-main-content h3,
.page-main-content h4 {
    margin-top: 2em;
    margin-bottom: 1em;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */
.page-section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    color: #000;
}

@media (min-width: 768px) {
    .page-section-title {
        font-size: 36px;
    }
}

@media (min-width: 992px) {
    .page-section-title {
        font-size: 40px;
    }
}

/* ==========================================================================
   Highlights Section
   ========================================================================== */
.page-highlights-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.page-highlights-grid {
    margin-top: 40px;
}

.page-highlight-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
}

.page-highlight-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.page-highlight-icon {
    margin-bottom: 20px;
}

.page-highlight-icon img {
    max-width: 80px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.page-highlight-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.page-highlight-text {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.page-highlight-link {
    display: inline-block;
    color: #b19361;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-highlight-link:hover {
    color: #8d7349;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .page-highlight-card {
        margin-bottom: 30px;
    }
}

/* ==========================================================================
   Info Sections
   ========================================================================== */
.page-info-sections {
    margin-top: 60px;
    margin-bottom: 60px;
}

.page-info-section {
    margin-bottom: 60px;
}

.page-info-block {
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.page-info-badge {
    display: inline-block;
    background: #b19361;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.page-info-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.page-info-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.page-info-content p {
    margin-bottom: 1.5em;
}

.page-info-content ul,
.page-info-content ol {
    margin-bottom: 1.5em;
    padding-left: 30px;
}

.page-info-content li {
    margin-bottom: 0.5em;
}

@media (max-width: 991px) {
    .page-info-section .row > div {
        margin-bottom: 30px;
    }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.page-faq-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.page-faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.page-faq-item {
    border: 1px solid #ebebeb;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background: #fff;
}

.page-faq-question {
    width: 100%;
    padding: 20px 25px;
    background: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    transition: all 0.3s ease;
    position: relative;
}

.page-faq-question:hover,
.page-faq-question:focus {
    background: #f9f9f9;
    outline: none;
}

.page-faq-question[aria-expanded="true"] {
    background: #f9f9f9;
    color: #b19361;
}

.page-faq-question-text {
    flex: 1;
    padding-right: 20px;
}

.page-faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.page-faq-icon::before,
.page-faq-icon::after {
    content: '';
    position: absolute;
    background: #000;
    transition: all 0.3s ease;
}

.page-faq-icon::before {
    width: 16px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.page-faq-icon::after {
    width: 2px;
    height: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.page-faq-question[aria-expanded="true"] .page-faq-icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.page-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
}

.page-faq-answer[aria-hidden="false"] {
    padding: 0 25px 25px;
}

.page-faq-answer-content {
    padding-top: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.page-faq-answer-content p {
    margin-bottom: 1em;
}

.page-faq-answer-content ul,
.page-faq-answer-content ol {
    margin-bottom: 1em;
    padding-left: 30px;
}

.page-faq-answer-content li {
    margin-bottom: 0.5em;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.page-cta-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.page-cta-wrapper {
    text-align: center;
    padding: 60px 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.page-cta-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.page-cta-text {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-cta-wrapper .btn {
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.page-cta-wrapper .btn-primary {
    background-color: #b19361;
    border-color: #b19361;
    color: #fff;
}

.page-cta-wrapper .btn-primary:hover {
    background-color: #8d7349;
    border-color: #8d7349;
    color: #fff;
}

.page-cta-wrapper .btn-outline-primary {
    background-color: transparent;
    border: 2px solid #b19361;
    color: #b19361;
}

.page-cta-wrapper .btn-outline-primary:hover {
    background-color: #b19361;
    border-color: #b19361;
    color: #fff;
}

@media (min-width: 768px) {
    .page-cta-wrapper {
        padding: 80px 40px;
    }
    
    .page-cta-title {
        font-size: 36px;
    }
}

@media (min-width: 992px) {
    .page-cta-title {
        font-size: 40px;
    }
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.page-sidebar {
    padding-left: 30px;
}

@media (max-width: 991px) {
    .page-sidebar {
        padding-left: 0;
        margin-top: 60px;
    }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 767px) {
    .page-hero-title {
        font-size: 28px;
    }
    
    .page-hero-subtitle {
        font-size: 16px;
    }
    
    .page-section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .page-highlight-card {
        padding: 25px;
    }
    
    .page-info-block {
        padding: 25px;
    }
    
    .page-faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .page-faq-answer {
        padding: 0 20px;
    }
    
    .page-faq-answer[aria-hidden="false"] {
        padding: 0 20px 20px;
    }
    
    .page-cta-wrapper {
        padding: 40px 20px;
    }
    
    .page-cta-title {
        font-size: 26px;
    }
    
    .page-cta-text {
        font-size: 16px;
    }
}

