/* Hero Section */
.hero-section {
    padding: 80px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.hero-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: center;
    position: relative;
    justify-content: flex-end;
}

/* Left Column: News Title and Main Image */
.hero-left-column {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* News Title */
.hero-text-content {
    text-align: left;
    width: 40%;
}

html[lang='ar'] .hero-text-content {
    text-align: right;
}

/* Main Image */
.hero-main-image {
    width: 85%;
    align-self: flex-end;
}

.main-property-img:hover {
    transform: scale(1.02);
}

.main-property-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 50px;
    transition: transform 0.3s ease;
}

/* Floating Circular Badge - Positioned between columns */
.floating-badge-blog {
    position: absolute;
    left: 68%;
    top: 40%;
    transform: translate(-50%, -50%);
    width: 136px;
    height: 136px;
    z-index: 10;
}

html[lang='ar'] .floating-badge-blog {
    right: 58%;
}

/* Right Column: Secondary Image with Description */
.hero-secondary-section {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-secondary-image {
    width: 100%;
    border-radius: 15px;
}

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

.texture-img {
    width: 100%;
    height: 300px;
    border-radius: 50px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-description {
    text-align: left;
}

.hero-title {
    font-size: 80px;
    font-weight: 100;
    color: #436164;
    letter-spacing: 14.4px;
    margin-bottom: 30px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    color: #000000;
    line-height: 1.6;
}

html[lang='ar'] .hero-subtitle {
    text-align: right;
}

.badge-content {
    position: relative;
    width: 136px;
    height: 136px;
    background: #A8AC90;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(168, 172, 144, 0.3);
    animation: float 4s ease-in-out infinite;
}


@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Rotate the circular text SVG */
.floating-badge-blog svg:last-child {
    animation: rotate 20s linear infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Latest News Section */
.latest-news-section {
    margin: 0 auto;
}

.latest-news-section h2 {
    color: var(--Sanad-Primary, #436164);
    font-size: 50px;
    font-style: normal;
    font-weight: 100;
    line-height: normal;
    margin-bottom: 3rem;
    text-align: center;
}
.latest-news {
    padding: 80px 0;
    background-color: #ffffff;
}

.section-title {
    font-size: 50px;
    font-weight: 300;
    color: #436164;
    text-align: center;
    margin-bottom: 61px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.news-card {
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    break-inside: avoid;
    margin-bottom: 2rem;
    box-shadow: 0 20px 25px rgba(96, 98, 103, 0.08),
                0 10px 10px rgba(96, 98, 103, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: fit-content;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 35px rgba(96, 98, 103, 0.12),
                0 15px 15px rgba(96, 98, 103, 0.08);
}

.news-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.news-image {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.news-card.featured .news-image {
    height: 100%;
    min-height: 393px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 30px;
}

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

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-card.featured .news-content {
    padding: 34px;
    justify-content: center;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.news-category {
    color: #436164;
    font-size: 20px;
    font-weight: 400;
}

.news-date {
    color: #666666;
    font-size: 16px;
    font-weight: 300;
}

.news-title {
    font-size: 24px;
    font-weight: 500;
    color: #000000;
    line-height: 1.3;
    margin-bottom: 12px;
}

.news-card.featured .news-title {
    font-size: 28px;
}

.news-excerpt {
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
    flex-grow: 1;
    font-weight: 100;
}

.read-more {
    color: #436164;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 8px;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #436164 0%, #5a7a7e 100%);
    color: #ffffff;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 20px;
}

.newsletter-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
}

.newsletter-form input::placeholder {
    color: #666666;
}

.newsletter-btn {
    background-color: #ffffff;
    color: #436164;
    border: none;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.newsletter-btn:hover {
    opacity: 0.9;
}

/* Mobile Hero Section */
.mobile-hero-section {
    display: none;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.mobile-hero-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.mobile-hero-text {
    text-align: center;
    margin-bottom: 20px;
}

.mobile-hero-title {
    font-size: 48px;
    font-weight: 100;
    color: var(--Sanad-Primary, #436164) !important;
    letter-spacing: 14.4px;
    margin-bottom: 10px;
    line-height: 1.1;
    display: block !important;
    visibility: visible !important;
}

.mobile-hero-subtitle {
    font-size: 16px;
    font-weight: 300;
    color: #436164;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 30px auto;
    color: #000000;
}

.mobile-main-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.mobile-main-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mobile-floating-badge {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 20px auto;
    z-index: 10;
}

.mobile-badge-content {
    width: 100%;
    height: 100%;
    background: var(--Sanad-Secondary, #A8AC90);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mobile-secondary-image {
    width: 70%;
    border-radius: 10px;
    overflow: hidden;
    align-self: center;
}

.mobile-secondary-img {
    width: 100%;
    height: 200px;
    transition: transform 0.3s ease;
}

/* Mobile Badge Animation */
.mobile-badge-content svg {
    animation: rotate 20s linear infinite;
}
/* Responsive Design */
@media (max-width: 768px) {
    /* Hide desktop hero, show mobile hero */
    .hero-section {
        display: none;
    }
    
    .mobile-hero-section {
        display: block;
    }
    
    .navbar-container {
        padding: 0 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .hero-left-column {
        width: 100%;
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-text-content {
        width: 100%;
    }
    
    .hero-main-image {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
    }
    
    .hero-text-content {
        text-align: center;
    }
    
    .hero-title {
        font-size: 48px;
        letter-spacing: 8px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .main-property-img {
        height: 300px;
    }
    
    .floating-badge-blog {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 20px auto;
    }
    
    .hero-secondary-section {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-description {
        text-align: center;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    .news-card.featured .news-image {
        height: 227px;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
        letter-spacing: 4px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-card.featured .news-content {
        padding: 24px;
    }
    
    .news-title {
        font-size: 20px;
    }
    
    .news-card.featured .news-title {
        font-size: 24px;
    }
}

/* Additional Mobile Adjustments */
@media (max-width: 768px) {
    /* Adjust mobile hero for smaller screens */
    .mobile-hero-title {
        font-size: 36px;
        letter-spacing: 10px;
        color: var(--Sanad-Primary, #436164) !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .mobile-hero-subtitle {
        font-size: 14px;
        max-width: 300px;
        margin: 0 auto 30px auto;
    }
    
    .mobile-main-img {
        height: 250px;
    }
    
    .mobile-secondary-img {
        height: 180px;
    }
    
    .mobile-floating-badge {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .news-image {
       height: 227px !important;
    }

    .mobile-hero-section {
        padding: 40px 15px;
        display: block;
    }
    
    .mobile-hero-title {
        font-size: 28px;
        letter-spacing: 8px;
        color: var(--Sanad-Primary, #436164) !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .mobile-hero-subtitle {
        font-size: 13px;
        max-width: 280px;
        margin: 0 auto 30px auto;
    }
    
    .mobile-main-img {
        height: 200px;
    }
    
    .mobile-secondary-img {
        height: 150px;
    }
    
    .mobile-floating-badge {
        position: absolute;
        width: 80px;
        height: 80px;
        margin: 15px auto;
        right: 40%;
        top: 58%;
    }
}
