/*
Theme Name: DFALGO
Author: Dominate Forex
Version: 1.0
Description: One-page DFALGO Access theme
*/

:root{
  --max: 1100px;
  --text: #121212;
  --muted: #666;
  --bg: #ffffff;
  --line: #e9e9e9;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== CLEAN CENTERED FIXED HEADER ===== */

.site-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #eee;
  z-index: 999;
}

/* Logo wrapper */
.logo-wrapper{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* WordPress logo link */
.custom-logo-link{
  display: flex;
  justify-content: center;
}

/* Actual image */
.custom-logo{
  max-height: 85px;
  width: auto;
  display: block;
}

/* ===== CLEAN CENTERED FIXED HEADER END ===== */

/* Hero */
.hero{
  text-align:center;
  padding:40px 0 10px;
}

.hero h1{
  margin:0;
  font-size:38px;
}

.hero p{
  max-width:820px;
  margin:14px auto 0;
  color:var(--muted);
  font-size:18px;
}

/* Sections */
.section{
  padding:40px 0;
}

.section-title{
  text-align:center;
  font-size:26px;
  margin-bottom:18px;
}

/* ===== VIDEO SECTION (CENTER + LARGE + RESPONSIVE) ===== */
/* ===== CLEAN CENTERED LARGE VIDEO ===== */

.video-section{
  display:flex;
  justify-content:center;
  padding: 50px 0 70px;
}

.video-container{
  width: 100%;
  max-width: 1100px;   /* Bigger video */
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.video-container iframe{
  width:100%;
  height:100%;
  border:0;
}


/* Center the entire CTA block */
.cta-block{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  width:100%;
}

/* CTA text */
.cta-title{
  font-size:28px;
  margin: 0 0 18px;
}

.cta-trust{
  font-size:14px;
  color: var(--muted);
  margin: 12px 0 0;
}


/* Footer */
.site-footer{
  border-top:1px solid var(--line);
  padding:26px 0 18px;
  background:#fff;
}

.footer-row{
  display:flex;
  flex-wrap:wrap;
  gap:14px 18px;
  justify-content:center;
  text-align:center;
  font-size:14px;
}

.footer-small{
  margin-top:12px;
  text-align:center;
  color:var(--muted);
  font-size:12px;
}

/* ===== PAYPAL CENTER: FINAL (iframe-safe) ===== */

.paypal .container{
  text-align: center !important;
}

.cta-block{
  text-align: center !important;
}

/* Keep the stack a fixed max width and centered */
.df-paypal-wrap{
  width: 100%;
  max-width: 420px;
  margin: 0 auto !important;
}

/* Each render target: center whatever PayPal injects */
#df-paypal-paypal,
#df-paypal-card{
  width: 100%;
  text-align: center !important;
}

/* PayPal usually injects a wrapper DIV, then the iframe */
#df-paypal-paypal > div,
#df-paypal-card > div{
  display: inline-block !important;  /* key: shrink-wrap so it can be centered */
  margin: 0 auto !important;
  max-width: 100% !important;
}

/* Center the iframe by making it inline-block (not block) */
#df-paypal-paypal iframe,
#df-paypal-card iframe{
  display: inline-block !important;
  margin: 0 auto !important;
  vertical-align: top !important;
}


/* ===== FORCE CENTER + MAKE VIDEO LARGE ===== */

.video-section{
  display: flex;
  justify-content: center;
  padding: 50px 0 70px;
}

.video-center{
  width: 100%;
  max-width: 1100px;   /* controls max width */
  display: flex;
  justify-content: center;
}

.video-center iframe{
  width: 100% !important;
  height: 700px !important;   /* makes it large */
  max-width: 1100px;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}


/* Prevent content from hiding under fixed header */
.site-content{
  padding-top:150px;
}


/* Force header logo to visually center */
.site-header{
  display:flex;
  justify-content:center;
  align-items:center;
}

.header-inner{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
}

/* WP wraps logo in a link */
.custom-logo-link{
  display:flex;
  justify-content:center;
  align-items:center;
}

/* Your PNG has extra canvas space — nudge it */
.custom-logo{
  max-height:80px;
  width:auto;
  display:block;
  transform: translateX(60px); /* <-- adjust this number until perfect */
}


.site-content{
  padding-top: 140px;
}
