/* Modern Style for BestVacationsNow - 2024 */

:root {
  --primary-color: #0066cc;
  --primary-dark: #0052a3;
  --primary-light: #3399ff;
  --secondary-color: #ff6b35;
  --accent-color: #00d4ff;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  --gradient-primary: linear-gradient(135deg, #0066cc 0%, #00d4ff 100%);
  --gradient-secondary: linear-gradient(135deg, #ff6b35 0%, #ffa500 100%);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Domine', serif;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.875rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-light);
  line-height: 1.8;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* Navigation */
.navigation-bar {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.container-2 {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-name {
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  margin: 0;
}

.navigation-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: var(--bg-light);
}

.nav-link.w--current {
  color: var(--primary-color);
  background-color: rgba(0, 102, 204, 0.1);
}

.nav-separator {
  color: var(--border-color);
  margin: 0 0.25rem;
}

/* Buttons */
.button, .button-round {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.button:hover, .button-round:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.button-round {
  border-radius: 25px;
  padding: 0.625rem 1.25rem;
}

/* Content Wrapper */
.content-wrapper {
  padding: 3rem 0;
  background-color: var(--bg-white);
  min-height: 60vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.w-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.w-row {
  display: flex !important;
  flex-wrap: wrap;
  margin: 0 -1rem;
  align-items: flex-start;
  gap: 0;
  flex-direction: row !important;
}

@media screen and (min-width: 992px) {
  .w-row {
    flex-wrap: nowrap !important;
    flex-direction: row !important;
  }
  
  .w-row > .w-col-9,
  .w-row .w-col-9 {
    flex: 0 0 75% !important;
    max-width: 75% !important;
    width: 75% !important;
    display: block !important;
    float: none !important;
  }
  
  .w-row > .w-col-3,
  .w-row .w-col-3,
  .w-row .column-2 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
    display: block !important;
    float: none !important;
  }
}

.w-col {
  padding: 0 1rem;
  box-sizing: border-box;
  float: none !important;
}

.w-col-9 {
  flex: 0 0 75% !important;
  max-width: 75% !important;
  width: 75% !important;
  display: block !important;
}

.w-col-3 {
  flex: 0 0 25% !important;
  max-width: 25% !important;
  width: 25% !important;
  display: block !important;
}

.w-col-12 {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

.column-2 {
  position: relative !important;
  width: 100% !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  clear: none !important;
  float: none !important;
  display: block !important;
  flex-shrink: 0 !important;
}

/* Force side-by-side layout for header and email box - highest specificity */
/* Override webflow.css for the first row to use grid layout - maximum specificity */
html body .content-wrapper .container.w-container .w-row:first-of-type {
  display: grid !important;
  grid-template-columns: 75% 25% !important;
  gap: 2rem !important;
  align-items: start !important;
  clear: both !important;
  margin-left: -1rem !important;
  margin-right: -1rem !important;
  width: 100% !important;
}

html body .content-wrapper .container.w-container .w-row:first-of-type::before,
html body .content-wrapper .container.w-container .w-row:first-of-type::after {
  display: none !important;
  content: none !important;
  clear: none !important;
}

html body .content-wrapper .container.w-container .w-row:first-of-type > .w-col.w-col-9 {
  grid-column: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  float: none !important;
  clear: none !important;
  position: relative !important;
  min-height: 0 !important;
}

html body .content-wrapper .container.w-container .w-row:first-of-type > .w-col.w-col-3,
html body .content-wrapper .container.w-container .w-row:first-of-type > .column-2.w-col.w-col-3 {
  grid-column: 2 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  float: none !important;
  clear: none !important;
  position: relative !important;
  min-height: 0 !important;
}

/* Override webflow.css float for first row columns - maximum specificity */
html body .content-wrapper .container.w-container .w-row:first-of-type .w-col {
  float: none !important;
  width: auto !important;
}

/* Cards */
.post-wrapper {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 0 !important;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-color);
}

.post-wrapper:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.post-content {
  padding: 0;
}

.blog-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.blog-title-link {
  color: var(--text-dark);
  transition: var(--transition);
}

.blog-title-link:hover {
  color: var(--primary-color);
}

.post-summary {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.post-info {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-right: 1rem;
}

/* Recent Articles Section */
.text-block-5 {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin: 3rem 0 2rem;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 1rem;
}

.text-block-5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.columns-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
  width: 100%;
}

.column-3 {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  height: 100%;
}
.column-3 > a {
  display: block;
  text-align: center;
  overflow: hidden;
}
.column-3:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.recent-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto;
  transition: var(--transition);
}

.column-3:hover .recent-image {
  transform: scale(1.05);
}

.recent-header {
  padding: 1.25rem 1.25rem 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: none;
  line-height: 1.3;
}

.recent-header a {
  color: var(--text-dark);
  transition: var(--transition);
}

.recent-header a:hover {
  color: var(--primary-color);
}

.recent-preview {
  padding: 0 1.25rem;
  color: var(--text-light);
  font-size: 0.95rem;
  flex-grow: 1;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.column-3 .button-round {
  margin: 0 1.25rem 1.25rem;
  width: calc(100% - 2.5rem);
  text-align: center;
}

/* Sidebar */
.white-wrapper {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.circle-profile {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  display: block;
}

.sidebar-copy h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.sidebar-copy p {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

/* Forms */
.text-field {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--bg-white);
  margin-bottom: 1rem;
}

.text-field:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.text-field.text-area {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #ffffff;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.paragraph {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.paragraph-2 {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.paragraph-2 a {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0.5rem;
  transition: var(--transition);
}

.paragraph-2 a:hover {
  color: var(--accent-color);
}

/* Hero Image */
.image {
  width: 100%;
  border-radius: 16px;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

/* Body Copy */
.body-copy {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.body-copy img {
  border-radius: 12px;
  margin: 1.5rem 0;
}

.body-copy a {
  color: var(--primary-color);
  text-decoration: underline;
}

.body-copy a:hover {
  color: var(--primary-dark);
}

/* Category Links */
.link-block {
  display: block;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  transition: var(--transition);
  background: var(--bg-white);
}

.link-block:hover {
  border-color: var(--primary-color);
  background: var(--bg-light);
  transform: translateX(4px);
}

.text-block-2 {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.text-block-4 {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Form Block */
.form-block {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.submit-button {
  width: 100%;
  padding: 0.875rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Success Messages */
.success-message {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  color: #155724;
}

.success-text {
  margin: 0;
  color: #155724;
}

/* Responsive Design */
@media screen and (max-width: 991px) {
  .w-col-9 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .w-col-3 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 2rem;
  }

  .columns-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .navigation-menu {
    flex-wrap: wrap;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }
}

@media screen and (max-width: 767px) {
  .container, .container-2, .w-container {
    padding: 0 1rem;
  }

  .content-wrapper {
    padding: 2rem 0;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .blog-title {
    font-size: 1.5rem;
  }

  .columns-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .recent-image {
    height: 200px;
  }

  .site-name {
    font-size: 1.5rem;
  }

  .navigation-menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .column-2 {
    position: relative !important;
    width: 100% !important;
    margin-top: 2rem;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 0;
  }
}

@media screen and (max-width: 479px) {
  .post-wrapper {
    padding: 1.5rem;
  }

  .white-wrapper {
    padding: 1.5rem;
  }

  .text-block-5 {
    font-size: 1.5rem;
  }
}

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

.post-wrapper, .column-3 {
  animation: fadeIn 0.6s ease-out;
}

/* Home Page Layout Grid - Maximum specificity to override webflow.css */
html body .content-wrapper .container.w-container .home-layout-grid {
  display: grid !important;
  grid-template-columns: 1fr 350px !important;
  gap: 2rem !important;
  align-items: start !important;
  margin-bottom: 2rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

html body .content-wrapper .container.w-container .home-layout-grid .home-main-content {
  width: 100% !important;
  float: none !important;
  clear: none !important;
  display: block !important;
  grid-column: 1 !important;
  min-width: 0 !important;
}

html body .content-wrapper .container.w-container .home-layout-grid .home-sidebar {
  width: 100% !important;
  float: none !important;
  clear: none !important;
  display: block !important;
  grid-column: 2 !important;
  min-width: 0 !important;
}

@media screen and (max-width: 991px) {
  .home-layout-grid {
    grid-template-columns: 1fr !important;
  }
  
  .home-sidebar {
    margin-top: 2rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
